Class: Boiler::Generator::Gem
- Includes:
- Boiler::GemRelated
- Defined in:
- lib/boiler/generator/gem.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Boiler::GemRelated
Methods inherited from Base
Constructor Details
This class inherits a constructor from Boiler::Generator::Base
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/boiler/generator/gem.rb', line 5 def execute raise "Must provide a base directory" unless @directory = @arguments.first raise "Directory #{directory} already exists" if File.exists?(directory) Rubysh.check_call('bundle', 'gem', directory) Touchup.new(, arguments).execute Suite.new(, arguments).execute fix_nesting commit("Initial commit (generated via `boiler gem')") end |