# File lib/bones/app/unfreeze.rb, line 5 5: def self.initialize_unfreeze 6: synopsis 'bones unfreeze [skeleton_name]' 7: 8: summary 'remove a skeleton from ~/.mrbones/' 9: 10: description Removes the named skeleton from the '~/.mrbones/' folder. If a name isnot given then the default skeleton is removed. 11: 12: option(standard_options[:verbose]) 13: end
# File lib/bones/app/unfreeze.rb, line 35 35: def parse( args ) 36: opts = super args 37: config[:name] = args.empty? ? DEFAULT_SKELETON : args.join('_') 38: config[:output_dir] = File.join(mrbones_dir, name) 39: end
# File lib/bones/app/unfreeze.rb, line 18 18: def run 19: fm = FileManager.new( 20: :source => repository || ::Bones.path(DEFAULT_SKELETON), 21: :destination => output_dir, 22: :stdout => stdout, 23: :stderr => stderr, 24: :verbose => verbose? 25: ) 26: 27: if fm.archive_destination 28: stdout.puts "Project skeleton #{name.inspect} has been unfrozen" 29: else 30: stdout.puts "Project skeleton #{name.inspect} is not frozen " << 31: "(no action taken)" 32: end 33: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.