# File lib/fastcst/command/begin.rb, line 29
29:         def run
30:             repo = Repository.new @repo_dir
31: 
32:             # check if they are currently working on anything
33:             id = repo['Current Revision']
34:             if repo['Current Revision']
35:                 UI.failure :constraint, "You cannot begin a revision until you either abort or\nfinish the current one: #{id}"
36:                 return
37:             end
38:             
39:             md_file = "meta-data.yaml"
40:             user = repo['Created By']
41:             md = nil
42:             
43:             Dir.chdir repo.work_dir do
44:                 # create the initial meta-data
45:                 MetaData.create_metadata(md_file, repo['Project'], @revision, @purpose, user['Name'], user['E-Mail'])
46:                 
47:                 md = MetaData.load_metadata(md_file)
48:             end
49:             
50:             # now setup our information to indicate that we're currently working on this revision
51:             repo['Current Revision'] = md['ID']
52:         end