Sha256: f4ccb4bb7729106c0e56fb521661cd765d8bdb76bfa1dbe0c055e08474698791
Contents?: true
Size: 1.02 KB
Versions: 23
Compression:
Stored size: 1.02 KB
Contents
module Bones::App class Unfreeze < Command def self.initialize_unfreeze synopsis 'bones unfreeze [skeleton_name]' summary 'remove a skeleton from ~/.mrbones/' description <<-__ Removes the named skeleton from the '~/.mrbones/' folder. If a name is not given then the default skeleton is removed. __ option(standard_options[:verbose]) end def run fm = FileManager.new( :source => repository || ::Bones.path(DEFAULT_SKELETON), :destination => output_dir, :stdout => stdout, :stderr => stderr, :verbose => verbose? ) if fm.archive_destination stdout.puts "Project skeleton #{name.inspect} has been unfrozen" else stdout.puts "Project skeleton #{name.inspect} is not frozen " << "(no action taken)" end end def parse( args ) opts = super args config[:name] = args.empty? ? DEFAULT_SKELETON : args.join('_') config[:output_dir] = File.join(mrbones_dir, name) end end # class Unfreeze end # module Bones::App # EOF
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
bones-3.1.0 | lib/bones/app/unfreeze.rb |
bones-3.0.1 | lib/bones/app/unfreeze.rb |
bones-3.0.0 | lib/bones/app/unfreeze.rb |