specinfra 2.76.2 → 2.76.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 +4 -4
- data/lib/specinfra/version.rb +1 -1
- data/specinfra.gemspec +3 -5
- metadata +5 -9
- data/.github/stale.yml +0 -18
- data/.gitignore +0 -23
- data/.gitmodules +0 -3
- data/.travis.yml +0 -26
- data/Guardfile +0 -7
- data/appveyor.yml +0 -63
- data/examples/multiple_backends.rb +0 -46
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e62df6bd334090ac7367f03e0305342b63382095
|
|
4
|
+
data.tar.gz: 28cbb48895bad8453f810cd0874fa5ff46d8bc30
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6b1f76858b2ab59966734bfb78cb7e5ebe1eb9e23cf36965eab537e692e453b85e3a7b7e981170ae8f74c7242d49a46a9e7b5284972ec898e4272d3bcb61870
|
|
7
|
+
data.tar.gz: c28cb1e8cc24c8f2295243b65fd540c2e77d0456e1f85816219bb094a035455c2fdb4b72bc3b3ebf1ec57afe0a3461c64d76443a38bddda6ec4b884e7c16ae6a
|
data/lib/specinfra/version.rb
CHANGED
data/specinfra.gemspec
CHANGED
|
@@ -13,17 +13,15 @@ Gem::Specification.new do |spec|
|
|
|
13
13
|
spec.homepage = 'https://github.com/mizzy/specinfra'
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
|
-
spec.files = `git ls-files`.split(
|
|
17
|
-
spec.files.
|
|
18
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
19
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
16
|
+
spec.files = %w{LICENSE.txt README.md} + `git ls-files`.split("\n").select { |f| f =~ %r{^(?:lib/)}i }
|
|
17
|
+
spec.test_files = %w{Gemfile specinfra.gemspec Rakefile} + `git ls-files`.split("\n").select { |f| f =~ %r{^(?:spec/)}i }
|
|
20
18
|
spec.require_paths = ["lib"]
|
|
21
19
|
# TODO: at some point pin to a minumum version of ruby to reduce support burden in a major version bump
|
|
22
20
|
# spec.required_ruby_version = '>= 2.3.0'
|
|
23
21
|
|
|
24
22
|
spec.add_runtime_dependency "net-scp"
|
|
25
23
|
spec.add_runtime_dependency "net-ssh", ">= 2.7"
|
|
26
|
-
# TODO: remove the lock when you want to
|
|
24
|
+
# TODO: remove the lock when you want to remove ruby < 2.3 support
|
|
27
25
|
spec.add_runtime_dependency "net-telnet", "0.1.1"
|
|
28
26
|
spec.add_runtime_dependency "sfl"
|
|
29
27
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: specinfra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.76.
|
|
4
|
+
version: 2.76.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gosuke Miyashita
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-scp
|
|
@@ -157,17 +157,10 @@ executables: []
|
|
|
157
157
|
extensions: []
|
|
158
158
|
extra_rdoc_files: []
|
|
159
159
|
files:
|
|
160
|
-
- ".github/stale.yml"
|
|
161
|
-
- ".gitignore"
|
|
162
|
-
- ".gitmodules"
|
|
163
|
-
- ".travis.yml"
|
|
164
160
|
- Gemfile
|
|
165
|
-
- Guardfile
|
|
166
161
|
- LICENSE.txt
|
|
167
162
|
- README.md
|
|
168
163
|
- Rakefile
|
|
169
|
-
- appveyor.yml
|
|
170
|
-
- examples/multiple_backends.rb
|
|
171
164
|
- lib/specinfra.rb
|
|
172
165
|
- lib/specinfra/backend.rb
|
|
173
166
|
- lib/specinfra/backend/base.rb
|
|
@@ -654,6 +647,9 @@ signing_key:
|
|
|
654
647
|
specification_version: 4
|
|
655
648
|
summary: Common layer for serverspec and itamae
|
|
656
649
|
test_files:
|
|
650
|
+
- Gemfile
|
|
651
|
+
- specinfra.gemspec
|
|
652
|
+
- Rakefile
|
|
657
653
|
- spec/backend/exec/build_command_spec.rb
|
|
658
654
|
- spec/backend/exec/child_process_spec.rb
|
|
659
655
|
- spec/backend/exec/consume_exited_process_spec.rb
|
data/.github/stale.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Number of days of inactivity before an issue becomes stale
|
|
2
|
-
daysUntilStale: 60
|
|
3
|
-
# Number of days of inactivity before a stale issue is closed
|
|
4
|
-
daysUntilClose: 7
|
|
5
|
-
# Issues with these labels will never be considered stale
|
|
6
|
-
exemptLabels:
|
|
7
|
-
- pinned
|
|
8
|
-
- security
|
|
9
|
-
# Label to use when marking an issue as stale
|
|
10
|
-
staleLabel: wontfix
|
|
11
|
-
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
12
|
-
markComment: >
|
|
13
|
-
This issue has been automatically marked as stale because it has not had
|
|
14
|
-
recent activity. It will be closed if no further activity occurs. Thank you
|
|
15
|
-
for your contributions.
|
|
16
|
-
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
17
|
-
closeComment: false
|
|
18
|
-
|
data/.gitignore
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
.bundle
|
|
4
|
-
.config
|
|
5
|
-
.yardoc
|
|
6
|
-
Gemfile.lock
|
|
7
|
-
InstalledFiles
|
|
8
|
-
_yardoc
|
|
9
|
-
coverage
|
|
10
|
-
doc/
|
|
11
|
-
lib/bundler/man
|
|
12
|
-
pkg
|
|
13
|
-
rdoc
|
|
14
|
-
spec/reports
|
|
15
|
-
test/tmp
|
|
16
|
-
test/version_tmp
|
|
17
|
-
tmp
|
|
18
|
-
.idea/
|
|
19
|
-
.ruby-gemset
|
|
20
|
-
.ruby-version
|
|
21
|
-
.rvmrc
|
|
22
|
-
upstream.sh
|
|
23
|
-
|
data/.gitmodules
DELETED
data/.travis.yml
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
|
|
3
|
-
rvm:
|
|
4
|
-
- 1.8.7
|
|
5
|
-
- 1.9.3
|
|
6
|
-
- 2.0.0
|
|
7
|
-
- 2.1
|
|
8
|
-
- 2.2
|
|
9
|
-
- 2.3
|
|
10
|
-
- 2.4
|
|
11
|
-
- 2.5
|
|
12
|
-
|
|
13
|
-
before_install:
|
|
14
|
-
- travis_retry gem update --system
|
|
15
|
-
- travis_retry gem install bundler
|
|
16
|
-
|
|
17
|
-
script:
|
|
18
|
-
- bundle exec rake spec
|
|
19
|
-
|
|
20
|
-
sudo: false
|
|
21
|
-
cache: bundler
|
|
22
|
-
notifications:
|
|
23
|
-
slack:
|
|
24
|
-
secure: OhClKo2Gn26gevN773CRR2NAHzmkrzGrVTHsAKm4dgNFqnaBVZGNv2kzjAFsy0CEjZJw3433NtaJdrWpLozdHFA5g7fhOTqB2y7Oh+8PsoS4qWsosKcjtCYt7BmNbEFkGaHKAdQjO/vGFml7tAOk/DtVRnfX6QgVUBjky2ao7XM=
|
|
25
|
-
|
|
26
|
-
|
data/Guardfile
DELETED
data/appveyor.yml
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
version: "{build}"
|
|
2
|
-
os: Windows Server 2012
|
|
3
|
-
|
|
4
|
-
platform:
|
|
5
|
-
- x64
|
|
6
|
-
|
|
7
|
-
environment:
|
|
8
|
-
bundle_gemfile: integration-test/Gemfile.winrm
|
|
9
|
-
bundler_url: https://rubygems.org/downloads/bundler-1.9.9.gem
|
|
10
|
-
|
|
11
|
-
matrix:
|
|
12
|
-
- ruby_version: "193"
|
|
13
|
-
- ruby_version: "200"
|
|
14
|
-
- ruby_version: "21"
|
|
15
|
-
- ruby_version: "22"
|
|
16
|
-
- ruby_version: "23"
|
|
17
|
-
- ruby_version: "24"
|
|
18
|
-
|
|
19
|
-
matrix:
|
|
20
|
-
allow_failures:
|
|
21
|
-
- ruby_version: "193"
|
|
22
|
-
|
|
23
|
-
clone_depth: 5
|
|
24
|
-
|
|
25
|
-
cache:
|
|
26
|
-
- C:\Ruby193\lib\ruby\gems\1.9.1 -> appveyor.yml
|
|
27
|
-
- C:\Ruby193\bin -> appveyor.yml
|
|
28
|
-
- C:\Ruby200\lib\ruby\gems\2.0.0 -> appveyor.yml
|
|
29
|
-
- C:\Ruby200\bin -> appveyor.yml
|
|
30
|
-
- C:\Ruby21\lib\ruby\gems\2.1.0 -> appveyor.yml
|
|
31
|
-
- C:\Ruby21\bin -> appveyor.yml
|
|
32
|
-
- C:\Ruby22\lib\ruby\gems\2.2.0 -> appveyor.yml
|
|
33
|
-
- C:\Ruby22\bin -> appveyor.yml
|
|
34
|
-
- C:\Ruby23\lib\ruby\gems\2.3.0 -> appveyor.yml
|
|
35
|
-
- C:\Ruby23\bin -> appveyor.yml
|
|
36
|
-
- C:\Ruby24\lib\ruby\gems\2.4.0 -> appveyor.yml
|
|
37
|
-
- C:\Ruby24\bin
|
|
38
|
-
|
|
39
|
-
install:
|
|
40
|
-
- git submodule update --init --recursive
|
|
41
|
-
- ps: Enable-PSRemoting -Force
|
|
42
|
-
- winrm quickconfig -q
|
|
43
|
-
- winrm set winrm/config/client @{TrustedHosts="*"}
|
|
44
|
-
- winrm set winrm/config/client/auth @{Basic="true"}
|
|
45
|
-
- winrm set winrm/config/service/auth @{Basic="true"}
|
|
46
|
-
- winrm set winrm/config/service @{AllowUnencrypted="true"}
|
|
47
|
-
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
|
48
|
-
- echo %PATH%
|
|
49
|
-
- ruby --version
|
|
50
|
-
- gem --version
|
|
51
|
-
- appveyor DownloadFile -Url %bundler_url% -FileName bundler.gem
|
|
52
|
-
- gem install --local bundler.gem --no-ri --no-rdoc --force ## appveyor often stops `gem install bundler`..?
|
|
53
|
-
- ps: $PSVersionTable
|
|
54
|
-
|
|
55
|
-
build_script:
|
|
56
|
-
- ruby -rfileutils -e 'FileUtils.rm_r(File.join(Gem.dir, "cache", "bundler")) if Dir.exists?(File.join(Gem.dir, "cache", "bundler"))'
|
|
57
|
-
- bundle install --jobs 3 --retry 3
|
|
58
|
-
- net user
|
|
59
|
-
- net localgroup
|
|
60
|
-
|
|
61
|
-
test_script:
|
|
62
|
-
- net user appveyor %WINDOWS_PASSWORD% # set by webui
|
|
63
|
-
- bundle exec rspec -fd --backtrace -r .\integration-test\winrm\spec_helper.rb .\integration-test\winrm
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
require 'specinfra'
|
|
2
|
-
require 'pp'
|
|
3
|
-
|
|
4
|
-
a = Specinfra::Backend::Exec.new
|
|
5
|
-
|
|
6
|
-
ssh_options = Net::SSH::Config.for(ENV['SSH_HOST'], [ENV['SSH_CONFIG']])
|
|
7
|
-
b = Specinfra::Backend::Ssh.new(
|
|
8
|
-
:host => ssh_options[:host_name],
|
|
9
|
-
:ssh_options => ssh_options,
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
threads = [a, b].map do |backend|
|
|
13
|
-
Thread.start(backend) do |backend|
|
|
14
|
-
result = []
|
|
15
|
-
result << backend.run_command("uname -a")
|
|
16
|
-
result << backend.command
|
|
17
|
-
result << backend.command.get(:install_package, 'dstat')
|
|
18
|
-
result
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
threads.each(&:join)
|
|
23
|
-
threads.each do |t|
|
|
24
|
-
pp t.value
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# example:
|
|
28
|
-
# [#<Specinfra::CommandResult:0x007fb3b1352e30
|
|
29
|
-
# @exit_signal=nil,
|
|
30
|
-
# @exit_status=0,
|
|
31
|
-
# @stderr="",
|
|
32
|
-
# @stdout=
|
|
33
|
-
# "Darwin p411 14.1.0 Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64\n">,
|
|
34
|
-
# #<Specinfra::CommandFactory:0x007fb3b1153508
|
|
35
|
-
# @os_info={:family=>"darwin", :release=>nil, :arch=>"x86_64"}>,
|
|
36
|
-
# "/usr/local/bin/brew install 'dstat'"]
|
|
37
|
-
# [#<Specinfra::CommandResult:0x007fb3b0b9c2e0
|
|
38
|
-
# @exit_signal=nil,
|
|
39
|
-
# @exit_status=0,
|
|
40
|
-
# @stderr="",
|
|
41
|
-
# @stdout=
|
|
42
|
-
# "Linux itamae-trusty 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\n">,
|
|
43
|
-
# #<Specinfra::CommandFactory:0x007fb3b0d4d4b8
|
|
44
|
-
# @os_info={:family=>"ubuntu", :release=>"14.04", :arch=>"x86_64"}>,
|
|
45
|
-
# "DEBIAN_FRONTEND='noninteractive' apt-get -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' install dstat"]
|
|
46
|
-
|