class JA::ConvertEnvironment

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/convert_environment.rb, line 65
def run
  if @name_args.length < 1
    ui.error('You must supply the name of the environment you wish to convert')
    exit 1
  end
  env = @name_args[0]
  converter = Chef::Convert::Environment.new(env, config)
  puts converter.generate_recipe
end