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 +4 -4
- data/lib/opzworks/cli.rb +1 -3
- data/lib/opzworks/config.rb +1 -1
- data/lib/opzworks/meta.rb +1 -1
- data/lib/opzworks.rb +6 -4
- 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: 77fabeb654ebbbe536b7f27716195528b075f732
|
4
|
+
data.tar.gz: 57a8697891f9b6e2baf0635d52e6f6b0e87fbf29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/opzworks/config.rb
CHANGED
@@ -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
data/lib/opzworks.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
require 'opzworks/meta'
|
2
2
|
require 'opzworks/config'
|
3
|
-
|
4
|
-
require
|
5
|
-
|
6
|
-
|
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
|