opzworks 0.3.11 → 0.3.12

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: f3b61c0b4454c4e8c85d0e261937f7c0a9a3b810
4
- data.tar.gz: 9fc6f7ef2868eb33c90567940bc3d21627d4c81a
3
+ metadata.gz: 77fabeb654ebbbe536b7f27716195528b075f732
4
+ data.tar.gz: 57a8697891f9b6e2baf0635d52e6f6b0e87fbf29
5
5
  SHA512:
6
- metadata.gz: c3602a5c078273782fff81d5f1cae986ee0982d171d71815416916626f800b2bc061e15324b5a3b4f821285fd9d80918453ed8967832a4c9a68bec8012e4e4a1
7
- data.tar.gz: fd9adda1cb636e83dd0cc5f61cf52b34e37e9e627e688fa30d35506030cc37d40ed25fdae14c29115b461e364c1c65b65bc63c9c631a94fcf3abe158f344092c
6
+ metadata.gz: b286d084ae9e1fa210b6ca85e0204bed712eddcec501da64187244df366d51520d3434d893c55a7da6b68bc7bd5c2ab3e588d8016b705b31e43bfb89daa013d1
7
+ data.tar.gz: 8dc971ff6e930955105b990b7c6747de22433038c8c3632c06b595f928376b3bcac7fc5d76410255b6f31d7a2bf863f8d542fce2dd68bc9449f49252006dd32f
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 json berks elastic)
8
-
9
7
  Trollop.options do
10
8
  version "opzworks #{OpzWorks::VERSION} (c) #{OpzWorks::AUTHORS.join(', ')}"
11
9
  banner <<-EOS.unindent
@@ -24,7 +22,7 @@ module OpzWorks
24
22
 
25
23
  Options:
26
24
  EOS
27
- stop_on commands
25
+ stop_on @commands
28
26
  end
29
27
 
30
28
  command = ARGV.shift
@@ -25,7 +25,7 @@ module OpzWorks
25
25
 
26
26
  @ssh_user_name =
27
27
  ini['opzworks']['ssh-user-name'].strip unless ini['opzworks']['ssh-user-name'].nil?
28
- @berks_repository_path=
28
+ @berks_repository_path =
29
29
  ini['opzworks']['berks-repository-path'].strip unless ini['opzworks']['berks-repository-path'].nil?
30
30
  @berks_base_path =
31
31
  ini['opzworks']['berks-base-path'].strip unless ini['opzworks']['berks-base-path'].nil?
data/lib/opzworks/meta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module OpzWorks
2
- VERSION = '0.3.11'
2
+ VERSION = '0.3.12'
3
3
  AUTHORS = ['Grant Heffernan', 'Mapzen']
4
4
  EMAIL = ['grant@mapzen.com']
5
5
  DESCRIPTION = 'OpzWorks Utilities'
data/lib/opzworks.rb CHANGED
@@ -1,9 +1,11 @@
1
1
  require 'opzworks/meta'
2
2
  require 'opzworks/config'
3
- require 'opzworks/commands/ssh'
4
- require 'opzworks/commands/json'
5
- require 'opzworks/commands/berks'
6
- require 'opzworks/commands/elastic'
3
+
4
+ # require our commands
5
+ @commands = %w(ssh json berks elastic)
6
+ @commands.each do |cmd|
7
+ require "opzworks/commands/#{cmd}"
8
+ end
7
9
 
8
10
  class String
9
11
  def unindent
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.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Heffernan