Class: Eastrails::Commands::Add
- Defined in:
- lib/eastrails/commands/add.rb
Constant Summary collapse
- ALIASES =
{ "tdd" => ["rspec", "cucumber"], "default" => ["tdd", "haml", "devise", "twitter_bootstrap"] }
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Generator
Constructor Details
This class inherits a constructor from Eastrails::Commands::Base
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 |
# File 'lib/eastrails/commands/add.rb', line 4 def execute components = (parameter.component.split(",")).map do |name| Eastrails::Components.class_for(name).new end components.map(&:add) end |