38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/nugrant/vagrant/v2/command/restricted_keys.rb', line 38
def execute
parser = create_parser()
arguments = parse_options(parser)
return help(parser) if @show_help
@env.ui.info("The following keys are restricted, i.e. that method access (`config.user.<key>`)", :prefix => false)
@env.ui.info("will not work. If you really want to use a restricted key, use array access ", :prefix => false)
@env.ui.info("instead (`config.user['<key>']`).", :prefix => false)
@env.ui.info("", :prefix => false)
@env.ui.info("You can run `vagrant user parameters` to check if your config currently defines", :prefix => false)
@env.ui.info("one or more restricted keys shown below.", :prefix => false)
@env.ui.info("", :prefix => false)
restricted_keys = Helper::get_restricted_keys()
@env.ui.info(restricted_keys.sort().join(", "), :prefix => false)
end
|