Module: BuckKnife::Commands::Base

Included in:
AddRole, Bootstrap, Capistrano, Create, EucaCreate, RackspaceCreate, RunClient
Defined in:
lib/buckknife/commands/base.rb

Instance Method Summary collapse

Instance Method Details

#base_run_listObject



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

#commandObject



5
6
7
# File 'lib/buckknife/commands/base.rb', line 5

def command
  Command.new 'knife'
end

#to_sObject



9
10
11
# File 'lib/buckknife/commands/base.rb', line 9

def to_s
  command.to_s
end