Class: Chef::Knife::Swap
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::Swap
- Defined in:
- lib/chef/knife/swap.rb
Overview
default command without parameters
Instance Method Summary collapse
-
#run ⇒ Object
begin.
Methods included from SwapBase
#available_configs, #chef_dir, #compare_configs, #current_configs, #knife_config, #print_available_configs, #print_current_configs, #use_config
Instance Method Details
#run ⇒ Object
begin
14 15 16 17 18 19 20 21 |
# File 'lib/chef/knife/swap.rb', line 14 def run if @name_args.empty? print_current_configs print_available_configs else use_config(@name_args[0]) end end |