Module: CloudFormationTool::CLI::ParamSupport::ClassMethods

Defined in:
lib/cloud_formation_tool/cli/param_support.rb

Instance Method Summary collapse

Instance Method Details

#add_param_optionsObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/cloud_formation_tool/cli/param_support.rb', line 14

def add_param_options
  option [ "-p", "--param" ], "PARAM", [
    "Parameter to use with the cloudformation, of the format Mame=Tag",
    "Use multiple times to set multiple parameters.",
    "See 'parameters' command to list the paramaters supported by the tempalte."
    ].join("\n"), multivalued: true
  option [ "-i", "--import" ], "FILE", "Import parameters from YAML file or HTTP URL.", :attribute_name => :param_file
  option [ "-k", "--import-key" ], "KEY", [
    "When loading parameters from a YAML file, use the specified key to load a named",
    "map from the file, instead of using just the file itself as the parameter map"
    ].join("\n"), :attribute_name => :param_key
end