# File lib/fastcst/command/attach.rb, line 28
28:         def run
29:             repo = Repository.new @repo_dir
30:             
31:             # check that a revision is in progress
32:             if not repo['Current Revision']
33:                 UI.failure :constraint, "You have not used begin to start a revision yet."
34:                 return
35:             end
36:             
37:             md_file = File.join(repo.work_dir, "meta-data.yaml")
38:             
39:             MetaData.add_file(md_file, @name, @purpose)
40:         end