lib/kumogata/argument_parser.rb in kumogata-0.4.8 vs lib/kumogata/argument_parser.rb in kumogata-0.4.9
- old
+ new
@@ -6,10 +6,11 @@
:delete_stack => true,
:result_log => File.join(Dir.pwd, 'result.json'),
:command_result_log => File.join(Dir.pwd, 'command_result.json'),
:color => $stdout.tty?,
:debug => false,
+ :config_profile => :default,
}
COMMANDS = {
:create => {
:description => 'Create resources as specified in the template',
@@ -81,9 +82,11 @@
begin
opt.on('-k', '--access-key ACCESS_KEY') {|v| options[:access_key_id] = v }
opt.on('-s', '--secret-key SECRET_KEY') {|v| options[:secret_access_key] = v }
opt.on('-r', '--region REGION') {|v| options[:region] = v }
+ opt.on('' , '--config PATH') {|v| options[:config_path] = v }
+ opt.on('' , '--profile CONFIG_PROFILE') {|v| options[:config_profile] = v }
opt.on('' , '--format TMPLATE_FORMAT', [:ruby, :json]) {|v| options[:format] = v }
opt.on('' , '--skip-replace-underscore') { options[:skip_replace_underscore] = false }
opt.on('' , '--deletion-policy-retain') { options[:deletion_policy_retain] = true }
opt.on('-p', '--parameters KEY_VALUES', Array) {|v| options[:parameters] = v }
opt.on('-e', '--encrypt-parameters KEYS', Array) {|v| options[:encrypt_parameters] = v }