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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 510a2bf77a281bc4ee6b0190f370d17017138505
4
- data.tar.gz: 7fcb46703b6fd09df705bd0772f416926f17ce96
3
+ metadata.gz: b900b683b64fe28a7b7fe4a8821e1f670a8bedcc
4
+ data.tar.gz: 49542f086fba79c2992f4f0fbe017568c5457740
5
5
  SHA512:
6
- metadata.gz: 3006aae0997e648c83c2a3309eda0154f51c9ff8c6eef54521ee883f1cb13e79fb6cebd4cef18e9543149ab06f51b7b0dfb6d70388470bb1050526685d7ab418
7
- data.tar.gz: 4a759fd871de073ccf0338ba9b712225b2661cafbf35566b501386bf40bb6cf13bfad2b6cb1aca95dc7344a85fb006cde62322be2d3a9572dddbe942d78726a9
6
+ metadata.gz: 8505d8db7dfc0320907668050191e0aaaed915f5772aa20abe6a157ebe48bf3e311af2fdf20b675b62b2fd19d9c55e06d9eca7d9f5907c0f0a75632cf3fd16a8
7
+ data.tar.gz: 7d708dc4ddd78d77ee84610ce03d61d85e3d8c5dafa1ab62811ace577cce6c3858072e0a0c890ab7a4ddb4cf5ddcab519aa42c9594b990b48cb6926914a2d633
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  changelog
2
2
  =========
3
3
 
4
+ 0.3.6
5
+ -----
6
+ * bug fix for elasticsearch 'start'
7
+
4
8
  0.3.4
5
9
  -----
6
10
  * -r option for `ssh` to return raw ips
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 toe the following format:
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
- es_get_input(opt, response)
50
- next if @get_data_failure == true
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
- @get_data_failure = true
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
- @get_data_failure = true
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])
@@ -36,7 +36,6 @@ module OpzWorks
36
36
  client = Aws::OpsWorks::Client.new(region: config.aws_region, profile: config.aws_profile)
37
37
  response = client.describe_stacks
38
38
 
39
- # loops over inputs
40
39
  ARGV.each do |opt|
41
40
  var = populate_stack(opt, response)
42
41
  next if var == false
@@ -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, 'Use private ips to populate SSH config, rather than public', default: false
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
@@ -1,5 +1,5 @@
1
1
  module OpzWorks
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  AUTHORS = ['Grant Heffernan', 'Mapzen']
4
4
  EMAIL = ['grant@mapzen.com']
5
5
  DESCRIPTION = 'OpzWorks Utilities'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opzworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan