awful 0.0.168 → 0.0.169

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63a0b1c3952a709088734a645256ad77511cd364
4
- data.tar.gz: 79ad0d19ac1ee5a14ca4000d716018e96be95ac1
3
+ metadata.gz: bce09c752dd834816f275301dafc8034e9e435ea
4
+ data.tar.gz: a462ceed5eecc9438220a6c74492aa4d90145eb0
5
5
  SHA512:
6
- metadata.gz: b993cd6e0a39ad48fe1fa8a4647204c924cff878eed8387f6f08144eae2e8070d3a6af1c3a8200316c292de6b2d47eeeb8791f9305682dac34b978411b739b4d
7
- data.tar.gz: 881a4eb3a8c115556a74b4cdcabbb83ae5709468e996e583dae4723ce2109ff98e4bc732f1a150fa827d131d2afe44a07c06d3991f56b6d0ff766c4a028ca7b5
6
+ metadata.gz: a4093be50cbb4c87d8913c7f55e63f4a621f6ada8022cd38cf185e699b322160095e3cecf1bd40d567884b047684ec6e357b03a44dd39007e5394708fb4415e1
7
+ data.tar.gz: ffae339b0d777baf05507c77f042df2cac3f965fe3a48d20513ecd267106b5c5c13ad06822ebd67b0fa952e18c52c91719bef4e11f8a0f96286d0296b7be2f2a
@@ -72,14 +72,16 @@ module Awful
72
72
  end
73
73
 
74
74
  desc 'put NAME VALUE', 'put parameter into the store'
75
+ method_option :name, aliases: '-n', type: :string, default: nil, desc: 'give name as option instead of arg'
76
+ method_option :value, aliases: '-v', type: :string, default: nil, desc: 'give value as option instead of arg'
75
77
  method_option :description, aliases: '-d', type: :string, default: nil, desc: 'description for params'
76
78
  method_option :type, aliases: '-t', type: :string, default: 'String', desc: 'String, StringList, SecureString'
77
79
  method_option :key_id, aliases: '-k', type: :string, default: nil, desc: 'KMS key for SecureString params'
78
80
  method_option :overwrite, aliases: '-o', type: :boolean, default: false, desc: 'overwrite existing params'
79
- def put(name, value)
81
+ def put(name = nil, value = nil)
80
82
  ssm.put_parameter(
81
- name: name,
82
- value: value,
83
+ name: options[:name] || name,
84
+ value: options[:value] || value,
83
85
  description: options[:description],
84
86
  type: options[:type],
85
87
  key_id: options[:key_id],
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.168'
2
+ VERSION = '0.0.169'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.168
4
+ version: 0.0.169
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-28 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler