Module: BuckKnife::Commands::Base
- Included in:
- AddRole, Bootstrap, Capistrano, Create, EucaCreate, RackspaceCreate, RunClient
- Defined in:
- lib/buckknife/commands/base.rb
Instance Method Summary collapse
- #base_run_list ⇒ Object
- #build_run_list(roles_and_recipes) ⇒ Object
- #command ⇒ Object
- #to_s ⇒ Object
Instance Method Details
#base_run_list ⇒ Object
13 14 15 |
# File 'lib/buckknife/commands/base.rb', line 13 def base_run_list project.base_run_list end |
#build_run_list(roles_and_recipes) ⇒ Object
17 18 19 20 21 |
# File 'lib/buckknife/commands/base.rb', line 17 def build_run_list(roles_and_recipes) roles_and_recipes.map do |type, name| "%s[%s]" % [type, name] end.join(',') end |
#command ⇒ Object
5 6 7 |
# File 'lib/buckknife/commands/base.rb', line 5 def command Command.new 'knife' end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/buckknife/commands/base.rb', line 9 def to_s command.to_s end |