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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7235b8d32eed6cbe7485bebffd735312bc25098
4
- data.tar.gz: 8be04c1baeddf535065b4f724cecc65c4ccd34ca
3
+ metadata.gz: 42f63e5a6909361777192e802e491f0044c8b408
4
+ data.tar.gz: db5cf762cf3d8ab29d64aba1dadf8ad48c2c9cf1
5
5
  SHA512:
6
- metadata.gz: 8e2582a91478d4f6ad3c2240c27f91589d03026591bb78ccd7da9f477219f4c89b0a67a78b668555d23c82922891e6058f6bf0836f24c31c4f75b7babd47312e
7
- data.tar.gz: f2fb059b79a84e786daf6ee8844685d40ad18cd9431217bfcfbe4a506c280d1a7f2d9c3b778660ad68c7b05bd8693296aa4dc4cf8ef1682af701e5567ade06b3
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
- if @options[:test]
91
- puts "command: #{@command}"
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
@@ -2,7 +2,7 @@ module Awssh
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 2
5
+ TINY = 3
6
6
  TAG = nil
7
7
  LIST = [MAJOR, MINOR, TINY, TAG].compact
8
8
  STRING = LIST.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shawn Catanzarite