454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
|
# File 'lib/vendor/puppet/util/settings.rb', line 454
def legacy_to_mode(type, param)
if not defined?(@app_names)
require 'puppet/util/command_line'
command_line = Puppet::Util::CommandLine.new
@app_names = Puppet::Util::CommandLine::LegacyName.inject({}) do |hash, pair|
app, legacy = pair
command_line.require_application app
hash[legacy.to_sym] = Puppet::Application.find(app).run_mode.name
hash
end
end
if new_type = @app_names[type]
Puppet.warning "You have configuration parameter $#{param} specified in [#{type}], which is a deprecated section. I'm assuming you meant [#{new_type}]"
return new_type
end
type
end
|