From fb6fd0225c16bf75a2bea4e2096311810f60ccb4 Mon Sep 17 00:00:00 2001 From: "Marc A. Paradise" Date: Thu, 11 Apr 2019 11:03:58 -0400 Subject: [PATCH] add ssh/winrm to core This updates train-core by adding ssh and winrm to the gem, matching its description of "A minimal Train with a selected set of backends, ssh, winrm, and docker." Signed-off-by: Marc A. Paradise --- train-core.gemspec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/train-core.gemspec b/train-core.gemspec index b1cbf7ae..32f54183 100644 --- a/train-core.gemspec +++ b/train-core.gemspec @@ -6,6 +6,10 @@ require 'train/version' CORE_TRANSPORTS = [ 'lib/train/transports/local.rb', 'lib/train/transports/mock.rb', + 'lib/train/transports/ssh.rb', + 'lib/train/transports/ssh_connection.rb', + 'lib/train/transports/winrm.rb', + 'lib/train/transports/winrm_connection.rb', ].freeze Gem::Specification.new do |spec| @@ -14,7 +18,7 @@ Gem::Specification.new do |spec| spec.authors = ['Dominik Richter'] spec.email = ['drichter@chef.io'] spec.summary = 'Transport interface to talk to a selected set of backends.' - spec.description = 'A minimal Train with a selected set of backends, ssh, winrm, and docker.' + spec.description = 'A minimal Train with a backends for ssh and winrm.' spec.homepage = 'https://github.com/inspec/train/' spec.license = 'Apache-2.0' @@ -26,7 +30,10 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - # chef-client < 12.4.1 require mixlib-shellout-2.0.1 + spec.add_dependency 'net-ssh', '>= 2.9', '< 6.0' + spec.add_dependency 'net-scp', '>= 1.2', '< 3.0' + spec.add_dependency 'winrm', '~> 2.0' + spec.add_dependency 'winrm-fs', '~> 1.0' spec.add_dependency 'mixlib-shellout', '>= 2.0', '< 4.0' spec.add_dependency 'json', '>= 1.8', '< 3.0' end