opzworks 0.4.0 → 0.4.1

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: 80563c605a5de8f932029a8991137546de482d48
4
- data.tar.gz: 225f1ecd7111ed50dcdd45dccca4ebda492d894b
3
+ metadata.gz: 623aa23d6aa18d9e9ac689a0af79c235658c1882
4
+ data.tar.gz: f65760c9802bcf2486533b99d5df36d4fd4aec69
5
5
  SHA512:
6
- metadata.gz: 78433773119c6dbefcfe1840b02e116595f1fd8f30cdbc6db04166c13f9928b029855af8e9fd22d54058fb64b16740d023d415412ce5f97e0a1a822e1ff3b3d2
7
- data.tar.gz: 04a3612efdc14da926762cda8ccdf7443c18a0da7c312b4feb0e886699ceddc37b6d30f34767d5503b0bb199f46eadcf26f6c2894156dff2b7d40bddd80ec5b8
6
+ metadata.gz: d5bcee47505fd354a87a20c6f98c8bd0f13c5536901068640e4589219f0afb319e2b855362e5a92a7a9fae201f9c17d15a0c4a1fd10d38841179dd28c11897ee
7
+ data.tar.gz: 4c67e78452dc95221fa49f4e7f67cca4ba6de4adcdd709b01436fbaf513dfa1979d4b8eb63305031ebd62b06d1d7fed16a14560e7881892105112d3a2eebd220
data/lib/opzworks/cli.rb CHANGED
@@ -4,8 +4,6 @@ require 'opzworks'
4
4
  module OpzWorks
5
5
  class CLI
6
6
  def self.start
7
- commands = %w(ssh cmd json berks elastic)
8
-
9
7
  Trollop.options do
10
8
  version "opzworks #{OpzWorks::VERSION} (c) #{OpzWorks::AUTHORS.join(', ')}"
11
9
  banner <<-EOS.unindent
@@ -25,7 +23,7 @@ module OpzWorks
25
23
 
26
24
  Options:
27
25
  EOS
28
- stop_on commands
26
+ stop_on COMMANDS
29
27
  end
30
28
 
31
29
  command = ARGV.shift
@@ -66,6 +66,7 @@ module OpzWorks
66
66
  if options[:raw]
67
67
  puts ip
68
68
  else
69
+ next if ip.nil?
69
70
  parameters = {
70
71
  'Host' => "#{instance[:hostname]}-#{stack_name}",
71
72
  'HostName' => ip,
data/lib/opzworks/meta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module OpzWorks
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  AUTHORS = ['Grant Heffernan', 'Mapzen']
4
4
  EMAIL = ['grant@mapzen.com']
5
5
  DESCRIPTION = 'OpzWorks Utilities'
data/lib/opzworks.rb CHANGED
@@ -2,7 +2,7 @@ require 'opzworks/meta'
2
2
  require 'opzworks/config'
3
3
 
4
4
  # require our commands
5
- %w(ssh cmd json berks elastic).each do |cmd|
5
+ COMMANDS = %w(ssh cmd json berks elastic).each do |cmd|
6
6
  require "opzworks/commands/#{cmd}"
7
7
  end
8
8
 
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan