Class: BuckKnife::ProjectBootstrap
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- BuckKnife::ProjectBootstrap
- Defined in:
- lib/chef/knife/project_bootstrap.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/chef/knife/project_bootstrap.rb', line 12 def run project = project_from_arg_or_ask node_name = @name_args[1] nodes = Array(project.node(node_name) || project.nodes) nodes.each do |node| ui.output "# Run this command to bootstrap #{node.name}:" ui.output BuckKnife::Commands::Bootstrap.new( project, node ) end end |