opzworks 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/opzworks/commands/elastic.rb +6 -2
- data/lib/opzworks/commands/include/elastic.rb +2 -2
- data/lib/opzworks/commands/json.rb +0 -1
- data/lib/opzworks/commands/ssh.rb +2 -1
- data/lib/opzworks/meta.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b900b683b64fe28a7b7fe4a8821e1f670a8bedcc
|
4
|
+
data.tar.gz: 49542f086fba79c2992f4f0fbe017568c5457740
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8505d8db7dfc0320907668050191e0aaaed915f5772aa20abe6a157ebe48bf3e311af2fdf20b675b62b2fd19d9c55e06d9eca7d9f5907c0f0a75632cf3fd16a8
|
7
|
+
data.tar.gz: 7d708dc4ddd78d77ee84610ce03d61d85e3d8c5dafa1ab62811ace577cce6c3858072e0a0c890ab7a4ddb4cf5ddcab519aa42c9594b990b48cb6926914a2d633
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -136,7 +136,7 @@ built. Defaults to /tmp.
|
|
136
136
|
![workflow](img/flow.png)
|
137
137
|
|
138
138
|
This gem makes a number of assumptions in order to enforce a specific workflow. First among them is
|
139
|
-
the Opsworks stack naming convection. This will need to adhere
|
139
|
+
the Opsworks stack naming convection. This will need to adhere to the following format:
|
140
140
|
|
141
141
|
PROJECT::ENV::REGION
|
142
142
|
|
@@ -46,8 +46,12 @@ module OpzWorks
|
|
46
46
|
|
47
47
|
# loops over inputs
|
48
48
|
ARGV.each do |opt|
|
49
|
-
|
50
|
-
|
49
|
+
if options[:start]
|
50
|
+
var = es_get_input(opt, response, 'start')
|
51
|
+
else
|
52
|
+
var = es_get_input(opt, response)
|
53
|
+
end
|
54
|
+
next if var == false
|
51
55
|
|
52
56
|
case options[:rolling]
|
53
57
|
when true
|
@@ -19,10 +19,10 @@ def es_get_input(input, data = {}, *cmd)
|
|
19
19
|
# break?
|
20
20
|
if count < 1
|
21
21
|
puts 'No matching stacks found for input '.foreground(:yellow) + input.foreground(:green) + ', skipping.'.foreground(:yellow)
|
22
|
-
|
22
|
+
return false
|
23
23
|
elsif count > 1
|
24
24
|
puts 'Found more than one stack matching input '.foreground(:yellow) + input.foreground(:green) + ', skipping.'.foreground(:yellow)
|
25
|
-
|
25
|
+
return false
|
26
26
|
else
|
27
27
|
puts 'Operating on stack '.foreground(:blue) + "#{match[:name]}".foreground(:green)
|
28
28
|
layers = @client.describe_layers(stack_id: match[:stack_id])
|
@@ -27,7 +27,7 @@ module OpzWorks
|
|
27
27
|
opt :update, 'Update ~/.ssh/config directly'
|
28
28
|
opt :backup, 'Backup old SSH config before updating'
|
29
29
|
opt :quiet, 'Use SSH LogLevel quiet', default: true
|
30
|
-
opt :private, '
|
30
|
+
opt :private, 'Return private IPs, rather than the default of public', default: false
|
31
31
|
opt :raw, 'Return only raw IPs rather than .ssh/config format output', default: false
|
32
32
|
end
|
33
33
|
|
@@ -80,6 +80,7 @@ module OpzWorks
|
|
80
80
|
next
|
81
81
|
else
|
82
82
|
new_contents = "#{instances.join("\n")}\n"
|
83
|
+
|
83
84
|
if options[:update]
|
84
85
|
ssh_config = "#{ENV['HOME']}/.ssh/config"
|
85
86
|
old_contents = File.read(ssh_config)
|
data/lib/opzworks/meta.rb
CHANGED