forked from inspec/train
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrain-core.gemspec
32 lines (27 loc) · 1.24 KB
/
train-core.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# encoding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'train/version'
CORE_TRANSPORTS = [
'lib/train/transports/local.rb',
'lib/train/transports/mock.rb',
].freeze
Gem::Specification.new do |spec|
spec.name = 'train-core'
spec.version = Train::VERSION
spec.authors = ['Dominik Richter']
spec.email = ['[email protected]']
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.homepage = 'https://github.com/chef/train/'
spec.license = 'Apache-2.0'
spec.files = %w{train-core.gemspec README.md LICENSE Gemfile CHANGELOG.md} + Dir
.glob('lib/**/*', File::FNM_DOTMATCH)
.reject { |f| f =~ %r{lib/train/transports} unless CORE_TRANSPORTS.include?(f) }
.reject { |f| File.directory?(f) }
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 'mixlib-shellout', '~> 2.0'
spec.add_dependency 'json', '>= 1.8', '< 3.0'
end