Class: Chef::Knife::Swap

Inherits:
Chef::Knife show all
Defined in:
lib/chef/knife/swap.rb

Overview

default command without parameters

Instance Method Summary collapse

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

#runObject

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