ssh_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c7a5615e37ffe71d7c3ccb86b4013a7639458d1f
4
+ data.tar.gz: 299d9e6e3d6d9426d44aca8b20c3c1daa78cdb32
5
+ SHA512:
6
+ metadata.gz: 721f31b7f5867280b098cf68a567a6c660ca25cb2501f35c946b15832258e162e4a49c358a914d00dbf59a56e4f10527da2679cfb45d716a72d7acf508ec8466
7
+ data.tar.gz: c18857031758e52688bf1847dd42ca664ca5ad6413b362572d83d55d8ac70c54cdb4d959b6d7d10f31bd756ae35e29d0d0fb65d0daa6c8c8abb569259dd184f6
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ *.log
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.2
4
+ - 2.3.0
5
+ before_install:
6
+ - ssh-keygen -f $HOME/.ssh/id_rsa -N ''
7
+ - cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
8
+ - gem install bundler
9
+ addons:
10
+ ssh_known_hosts:
11
+ - localhost
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at key@kosmatov.ru. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ssh_client.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Konstantin Kosmatov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,110 @@
1
+ # SSHClient
2
+
3
+ [![Build Status](https://travis-ci.org/kosmatov/ssh_client.svg?branch=master)](https://travis-ci.org/kosmatov/ssh_client)
4
+ [![Coverage Status](https://coveralls.io/repos/github/kosmatov/ssh_client/badge.svg?branch=master)](https://coveralls.io/github/kosmatov/ssh_client?branch=master)
5
+
6
+ Ruby SSH client for servers without `exec` requests support
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'ssh_client'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install ssh_client
23
+
24
+ ## Usage
25
+
26
+ ### Configure client
27
+
28
+ ```ruby
29
+
30
+ # Default config
31
+ SSHClient.configure do |conf|
32
+ conf.hostname = 'example.com'
33
+ conf.username = 'sample'
34
+ conf.password = 'sample'
35
+ conf.logger = Logger.new('log/my.log') # default log to STDOUT
36
+ conf.read_timeout = 0.5 # default 0.3
37
+ conf.raise_on_errors = true # raise exception if command write to STDERR
38
+ end
39
+
40
+ # Custom config
41
+ SSHClient.configure(:custom) do |conf|
42
+ conf.hostname = '127.0.0.1'
43
+ end
44
+ ```
45
+
46
+ ### Execute commands
47
+
48
+ Using connection instance
49
+
50
+ ```ruby
51
+ connection = SSHClient.connect
52
+
53
+ listener = connection.add_listener(:stdout) do |data|
54
+ puts data
55
+ end
56
+
57
+ connection.exec 'hostname'
58
+ connection.remove_listener(listener)
59
+ connection.close
60
+ ```
61
+
62
+ Using connection with custom config
63
+
64
+ ```ruby
65
+ connection = SSHClient.connect :custom
66
+ ```
67
+
68
+ Pass hostname, username and password to connection
69
+
70
+ ```ruby
71
+ connection = SSHClient.connect hostname: 'example.com', username: 'sample', password: 'sample'
72
+ ```
73
+
74
+ Multiply commands run with block. Connection closed after block execution
75
+
76
+ ```ruby
77
+ SSHClient.connect do
78
+ run 'hostname'
79
+ run 'uname -a'
80
+ run 'cat /proc/cpuinfo | grep model'
81
+ end
82
+ ```
83
+
84
+ Run command and return output
85
+
86
+ ```ruby
87
+ output = connection.exec! 'hostname'
88
+
89
+ output = connection.exec! do
90
+ run 'hostname'
91
+ run 'uname -a'
92
+ end
93
+ ```
94
+
95
+ ## Development
96
+
97
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
98
+
99
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
100
+
101
+
102
+ ## Contributing
103
+
104
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ssh_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
105
+
106
+
107
+ ## License
108
+
109
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
110
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "ssh_client"
5
+ require "pry"
6
+
7
+ SSHClient.configure do |conf|
8
+ conf.hostname = ENV['SSHHOST'] || 'localhost'
9
+ conf.username = ENV['SSHUSER']
10
+ conf.password = ENV['SSHPASS']
11
+ conf.read_timeout = 0.3
12
+ conf.debug = true
13
+ end
14
+
15
+ SSHClient.config.logger = Logger.new "log/development.log"
16
+
17
+ def ssh
18
+ @ssh ||= SSHClient.connect
19
+ end
20
+
21
+ Pry.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,40 @@
1
+ module SSHClient
2
+ class CommandBuilder
3
+ SEPARATOR = ' '.freeze
4
+
5
+ def initialize(&blk)
6
+ @paths = []
7
+ @context = eval 'self', blk.binding
8
+ instance_eval(&blk)
9
+ end
10
+
11
+ def to_a
12
+ @paths
13
+ end
14
+
15
+ def run(*args)
16
+ @paths << to_path(*args)
17
+ end
18
+
19
+ private
20
+
21
+ def method_missing(*args)
22
+ return @context.send(*args) if @context.respond_to?(args.first, true)
23
+ name = args.shift
24
+ value = to_path args.map { |a| to_path a }
25
+ @paths.pop if @paths.last == value
26
+ @paths << to_path(name, value)
27
+ @paths.last
28
+ end
29
+
30
+ def /(path)
31
+ "/#{path}"
32
+ end
33
+
34
+ def to_path(*args)
35
+ val = args.is_a?(Hash) ? args.to_a : args
36
+ Array(val).flatten.compact.join SEPARATOR
37
+ end
38
+
39
+ end
40
+ end
@@ -0,0 +1,76 @@
1
+ require 'logger'
2
+
3
+ module SSHClient
4
+ class ConfigItem
5
+ DEFAULT_NAME = :default
6
+ READ_TIMEOUT = 0.5
7
+
8
+ attr_accessor :hostname, :username, :password
9
+ attr_reader :name
10
+ attr_writer :read_timeout, :logger, :transport, :debug
11
+
12
+ def initialize(name = nil)
13
+ @name = name || DEFAULT_NAME
14
+ @listeners = { stdout: Set.new, stderr: Set.new }
15
+
16
+ add_listener(:logger) { |data| logger.info "<< #{data}" } if default?
17
+ end
18
+
19
+ def listeners
20
+ @cached_listeners ||= if default?
21
+ @listeners
22
+ else
23
+ @listeners.each { |k, l| l += SSHClient.config.listeners[k] }
24
+ end
25
+ end
26
+
27
+ def add_listener(name, io_type = nil, &blk)
28
+ Array(io_type || @listeners.keys).each do |k|
29
+ @listeners[k] << blk
30
+ end
31
+ @cached_listeners = nil
32
+ blk
33
+ end
34
+
35
+ def remove_listener(listener, io_type = nil)
36
+ Array(io_type || @listeners.keys).each do |k|
37
+ @listeners[k].delete listener
38
+ end
39
+ @cached_listeners = nil
40
+ end
41
+
42
+ def read_timeout
43
+ @read_timeout || (default? ? READ_TIMEOUT : SSHClient.config.read_timeout)
44
+ end
45
+
46
+ def transport
47
+ transport_klass.new self
48
+ end
49
+
50
+ def transport_klass
51
+ @transport || (default? ? Transport::NetSSH : SSHClient.config.transport_klass)
52
+ end
53
+
54
+ def raise_on_errors=(value)
55
+ if value
56
+ add_listener(:raise_on_errors, :stderr) do |data|
57
+ Thread.main.raise CommandExitWithError.new(data) if data
58
+ end
59
+ else
60
+ remove_listener(:raise_on_errors, :stderr)
61
+ end
62
+ end
63
+
64
+ def logger
65
+ @logger || (default? ? Logger.new(STDOUT) : SSHClient.config.logger)
66
+ end
67
+
68
+ def debug?
69
+ @debug || (default? ? false : SSHClient.config.debug?)
70
+ end
71
+
72
+ def default?
73
+ name == DEFAULT_NAME
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,48 @@
1
+ require 'forwardable'
2
+
3
+ module SSHClient
4
+ class Connection
5
+ extend Forwardable
6
+ def_delegators :transport, :open, :close, :closed?
7
+ def_delegators :config, :add_listener, :remove_listener
8
+
9
+ attr_reader :config, :transport
10
+
11
+ def initialize(config_name = nil, hostname: nil, username: nil, password: nil, &blk)
12
+ build_config hostname, username, password if hostname
13
+ @config ||= SSHClient.config config_name
14
+ @transport = config.transport
15
+
16
+ open
17
+ batch_exec(&blk) if block_given?
18
+
19
+ ObjectSpace.define_finalizer(self) { transport.close }
20
+ end
21
+
22
+ def build_config(hostname, username, password)
23
+ @config ||= SSHClient.configure(hostname) do |conf|
24
+ conf.hostname = hostname
25
+ conf.username = username
26
+ conf.password = password
27
+ end
28
+ end
29
+
30
+ def exec(command, close: false)
31
+ config.logger.info ">> #{command}"
32
+ transport.send_message command, close: close
33
+ end
34
+
35
+ def exec!(command = nil, &blk)
36
+ buffer = String.new
37
+ listener = add_listener(:stdout) { |data| buffer << data }
38
+ block_given? ? batch_exec(&blk) : exec(command, close: true)
39
+ remove_listener listener
40
+ buffer
41
+ end
42
+
43
+ def batch_exec(&blk)
44
+ exec CommandBuilder.new(&blk).to_a.join("\n"), close: true
45
+ end
46
+
47
+ end
48
+ end
@@ -0,0 +1,15 @@
1
+ module SSHClient
2
+ module Transport
3
+ class Base
4
+ attr_reader :config
5
+
6
+ def initialize(config)
7
+ @config = config
8
+ end
9
+
10
+ def handle_listeners(io_type, data)
11
+ config.listeners[io_type].each { |l| l.call data }
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,50 @@
1
+ require 'net/ssh'
2
+ require_relative 'base'
3
+
4
+ module SSHClient
5
+ module Transport
6
+ class NetSSH < Base
7
+ attr_reader :ssh
8
+
9
+ def send_message(command, close: false)
10
+ open if closed?
11
+ last_read_time = nil
12
+
13
+ ssh.open_channel do |channel|
14
+ channel.send_channel_request 'shell' do |ch, success|
15
+ channel.on_data do |c, data|
16
+ handle_listeners :stdout, data
17
+ last_read_time = Time.now
18
+ end
19
+
20
+ channel.on_extended_data do |c, data|
21
+ handle_listeners :stderr, data
22
+ end
23
+
24
+ channel.send_data "#{command}\n"
25
+ end
26
+ end
27
+
28
+ ssh.loop(0.1) do
29
+ read_timeout = Time.now - last_read_time if last_read_time
30
+ ssh.busy? && (!read_timeout || read_timeout < config.read_timeout)
31
+ end
32
+
33
+ ssh.close if close
34
+ end
35
+
36
+ def open
37
+ @ssh = Net::SSH.start config.hostname, config.username,
38
+ password: config.password, logger: config.debug? && config.logger
39
+ end
40
+
41
+ def closed?
42
+ ssh.nil? || ssh.closed?
43
+ end
44
+
45
+ def close
46
+ @ssh.close if !closed?
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,3 @@
1
+ module SSHClient
2
+ VERSION = "0.1.0"
3
+ end
data/lib/ssh_client.rb ADDED
@@ -0,0 +1,27 @@
1
+ require 'ssh_client/version'
2
+
3
+ module SSHClient
4
+ autoload 'ConfigItem', 'ssh_client/config_item'
5
+ autoload 'Connection', 'ssh_client/connection'
6
+ autoload 'CommandBuilder', 'ssh_client/command_builder'
7
+ autoload 'Transport', 'ssh_client/transport/net_ssh'
8
+
9
+ CommandExitWithError = Class.new(StandardError)
10
+
11
+ def self.configure(name = nil)
12
+ yield config(name)
13
+ end
14
+
15
+ def self.config(name = nil)
16
+ @configurations ||= Hash.new
17
+ @configurations[name] ||= ConfigItem.new name
18
+ end
19
+
20
+ def self.connect(*args, &blk)
21
+ @current_connection = Connection.new(*args, &blk)
22
+ end
23
+
24
+ def self.close
25
+ @current_connection.close
26
+ end
27
+ end
data/log/.gitkeep ADDED
File without changes
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'ssh_client/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "ssh_client"
8
+ spec.version = SSHClient::VERSION
9
+ spec.authors = ["Konstantin Kosmatov"]
10
+ spec.email = ["key@kosmatov.ru"]
11
+
12
+ spec.summary = %q{Ruby SSH client}
13
+ spec.description = %q{Ruby SSH client using Open3 and OpenSSH to interact with any remote shell}
14
+ spec.homepage = "https://github.com/kosmatov/ssh_client"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_runtime_dependency 'net-ssh'
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.11"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rspec", "~> 3.0"
25
+ spec.add_development_dependency "pry", "~> 0"
26
+ spec.add_development_dependency "coveralls", "~> 0"
27
+ end
metadata ADDED
@@ -0,0 +1,147 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ssh_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Konstantin Kosmatov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: net-ssh
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.11'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Ruby SSH client using Open3 and OpenSSH to interact with any remote shell
98
+ email:
99
+ - key@kosmatov.ru
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".travis.yml"
107
+ - CODE_OF_CONDUCT.md
108
+ - Gemfile
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - bin/console
113
+ - bin/setup
114
+ - lib/ssh_client.rb
115
+ - lib/ssh_client/command_builder.rb
116
+ - lib/ssh_client/config_item.rb
117
+ - lib/ssh_client/connection.rb
118
+ - lib/ssh_client/transport/base.rb
119
+ - lib/ssh_client/transport/net_ssh.rb
120
+ - lib/ssh_client/version.rb
121
+ - log/.gitkeep
122
+ - ssh_client.gemspec
123
+ homepage: https://github.com/kosmatov/ssh_client
124
+ licenses:
125
+ - MIT
126
+ metadata: {}
127
+ post_install_message:
128
+ rdoc_options: []
129
+ require_paths:
130
+ - lib
131
+ required_ruby_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ requirements: []
142
+ rubyforge_project:
143
+ rubygems_version: 2.5.2
144
+ signing_key:
145
+ specification_version: 4
146
+ summary: Ruby SSH client
147
+ test_files: []