awssh 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/awssh/command.rb +4 -7
- data/lib/awssh/version.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: 42f63e5a6909361777192e802e491f0044c8b408
|
4
|
+
data.tar.gz: db5cf762cf3d8ab29d64aba1dadf8ad48c2c9cf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8975951061276bb73e6acff5172bfd35af9db7321b9d159ad80f047a0959ef8a1c1eabea107c3c1511129347ec11a98a1b4bd3678c941741b491f542fed3a8c2
|
7
|
+
data.tar.gz: 827941515f2272257cf43c1e18995e9929ad1196bce407ffa5ec73ac4e0cb0c109fa3b20551ec8d97c7e20d2a30f887007a8bae5f8e6bd37d4cc2baf30f3b482
|
data/lib/awssh/command.rb
CHANGED
@@ -48,7 +48,7 @@ module Awssh
|
|
48
48
|
end
|
49
49
|
opts.on('-i', '--init', 'initialize config') do |i|
|
50
50
|
path = File.expand_path("~/.awssh")
|
51
|
-
File.open(path, "w+") {|f| f.write config.to_yaml}
|
51
|
+
File.open(path, "w+") { |f| f.write config.to_yaml }
|
52
52
|
puts "created config file: #{path}"
|
53
53
|
exit 0
|
54
54
|
end
|
@@ -87,11 +87,8 @@ module Awssh
|
|
87
87
|
|
88
88
|
@command = get_command(@servers)
|
89
89
|
|
90
|
-
|
91
|
-
|
92
|
-
else
|
93
|
-
exec @command
|
94
|
-
end
|
90
|
+
puts "running: #{@command}"
|
91
|
+
exec @command unless @options[:test]
|
95
92
|
end
|
96
93
|
|
97
94
|
private
|
@@ -126,7 +123,7 @@ module Awssh
|
|
126
123
|
|
127
124
|
def get_command(servers)
|
128
125
|
if @options[:multi]
|
129
|
-
command = "#{@config["multi"]} #{servers.map {|e| server_url(e) }.join(' ')}"
|
126
|
+
command = "#{@config["multi"]} #{servers.map { |e| server_url(e) }.join(' ')}"
|
130
127
|
else
|
131
128
|
command = "#{@config["single"]} #{server_url(servers.first)}"
|
132
129
|
end
|
data/lib/awssh/version.rb
CHANGED