Class: BuckKnife::ProjectRunClient

Inherits:
Chef::Knife
  • Object
show all
Defined in:
lib/chef/knife/project_run_client.rb

Instance Method Summary collapse

Instance Method Details

#runObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/chef/knife/project_run_client.rb', line 17

def run
  project   = project_from_arg_or_ask
  node_name = @name_args[1]

  ui.output "# Run this command to run client:"
  ui.output BuckKnife::Commands::RunClient.new(
    :project     => project.name,
    :node        => node_name,
    :environment => config[:env]
  )
end