awful 0.0.69 → 0.0.70
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/ssm.rb +8 -2
- data/lib/awful/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 023f1990584357d114dc7e70c8d2971c1ecd00ce
|
4
|
+
data.tar.gz: 6b7861723e772dbc5c36902c433fb7ba95d16d18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ebd3dd3cf71c1bdbb0c300f119953278fc27732749188fdbe0d9e37ba985eebfdb1a13436b0423b792fbe3f57eb90017e50c665f3374f46190c7dccdfb460ff
|
7
|
+
data.tar.gz: ddf52bcfe5a26b5fc6830d7631a20fc8310b0093ef1b3af6acf53613de636f9d2a3ccce09fda5e384f8ae9bfa141b765019eea8c62d0b96657aa8261ddcb2828
|
data/lib/awful/ssm.rb
CHANGED
@@ -66,12 +66,18 @@ module Awful
|
|
66
66
|
end
|
67
67
|
|
68
68
|
desc 'shell_script INSTANCE_IDS', 'run shell script on instances'
|
69
|
-
method_option :commands, aliases: '-c', type: :array,
|
70
|
-
method_option :comment, type: :string,
|
69
|
+
method_option :commands, aliases: '-c', type: :array, default: [], desc: 'Commands to run'
|
70
|
+
method_option :comment, type: :string, default: nil, desc: 'Brief command description'
|
71
|
+
method_option :timeout, aliases: '-t', type: :numeric, default: nil, desc: 'Timeout in seconds'
|
72
|
+
method_option :bucket, aliases: '-b', type: :string, default: nil, desc: 'S3 bucket to save output'
|
73
|
+
method_option :prefix, aliases: '-p', type: :string, default: nil, desc: 'Prefix for S3 output key'
|
71
74
|
def shell_script(*instance_ids)
|
72
75
|
ssm.send_command(
|
73
76
|
instance_ids: instance_ids,
|
74
77
|
comment: options[:comment],
|
78
|
+
timeout_seconds: options[:timeout],
|
79
|
+
output_s3_bucket_name: options[:bucket],
|
80
|
+
output_s3_key_prefix: options[:prefix],
|
75
81
|
document_name: 'AWS-RunShellScript',
|
76
82
|
parameters: {
|
77
83
|
commands: options[:commands]
|
data/lib/awful/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.70
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ric Lister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|