direct_ssh 0.1.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjA1OTA3N2M3NjRkNzUwMTUzYjJiYzIzMjM2NWYwMDcwYzA1M2U1Ng==
4
+ NGVmZWIxZDgyZmViOTRkMzM0NWMxYjllNzc4M2FiYWExMmQ5ZDczMw==
5
5
  data.tar.gz: !binary |-
6
- NGQ1OTk3YjM0MDg4ZjNlYjQyZDdjODM0MWFmYTFjMWJlMzM1ZTUzNQ==
6
+ NWJiYmNlZGU3MTQyMzExYmI3NzQ2OGZiOGM3OTAxNGJjYjgzZjYzNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGU2YmViMDA3NzhmZWQ1OTVkN2Y2N2U3MTEyOTdlYTEyYzI4ZmZlZjAzYTQ1
10
- ZDgwNDYzNDZhYzU5MWNkM2Q3MWMzZDVmZTg1YmJlYTAyNzlmZDBhNzNlMzEy
11
- OWQ5OGRhMmJmNWE4ZjkyMGVjNzI0Njk0YTVkZDQ3NjBkMGNlYmU=
9
+ MTkxOWEyNjBiMGM2MDAwOTlkY2Q0NmE2YTc0ODQ4YTI0NWZkNTA3ODc5OTRh
10
+ YmU2MDUyZDhlYWQ4MTlkZjhkOGNlYjJhYzFjZjYwZjQyNTdiODc4YTk3ZDFh
11
+ Nzc2MGJiOWIxMzY3NjI2ZGI5OWI4NTVlNGQwMDA3Y2YwOWRiYzU=
12
12
  data.tar.gz: !binary |-
13
- ZDA1MmUyNjExN2M5OTBhZGI0MDJiNzIxNTEyZTllMDQ2OWI0ZDY4NWQ2M2Rm
14
- ZWZhNGFiY2RhOWZkZWQ2ZjY4Mjk2ZWFiYTBjMTRhZDUwY2RhM2UzZWQ1N2Vk
15
- NTQ5YjE1MDEyMGFlNjdkZmNjMDk1OTI3MzU1ZjEwZDM2NDNmMjk=
13
+ ZjY2NDE3YzhiMzdkYmE3ZTY4MDUxNDNkMzIyNmYyOGU4OTY5NTE0YTYzNzk5
14
+ NGEwYTAxNDFjZWQwMjdjMzg1NmNiMDUyMWJmM2ZmMThkMDJkNmYyYjdiYWFm
15
+ OTU4Y2Q0NGE0M2IzOTgxM2NhMTliZTdlYjRlYmFkMTBiMDIxNzY=
@@ -24,8 +24,7 @@ def main(argv)
24
24
  host, user, port = parse_args(argv)
25
25
 
26
26
  DirectSsh.start(host, user, {:port => port}) { |ssh|
27
- puts ssh.exec!('cat /etc/*-release')
28
- puts 'Direct SSH connected successfully'
27
+ system "ssh #{user}@#{host} -p #{port}"
29
28
  }
30
29
  rescue ArgumentError => e
31
30
  $stderr.puts e.message
@@ -1,3 +1,3 @@
1
1
  module DirectSsh
2
- VERSION = "0.1.8"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: direct_ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xia Xiongjun