datacenter 0.4.4 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +6 -9
- data/datacenter.gemspec +2 -3
- data/lib/datacenter.rb +6 -1
- data/lib/datacenter/shell/remote.rb +2 -2
- data/lib/datacenter/version.rb +1 -1
- data/spec/coverage_helper.rb +1 -4
- data/spec/shell_spec.rb +1 -1
- metadata +34 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0df8189a34c38c4a44f068b76e08c20aa8c464720ee29d5ce65f27afa54659ef
|
4
|
+
data.tar.gz: 9a52a5412f2d0c9ae475ec14806874b45b1a727a1a2ea8ffcf7fc89e771dcb19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9766f0328782f82fb5cf100209ab228f3a9ca5f3a96c7218cd31093d82c4b068383e375b5b87b9462775ac781c4423a36980fb4b73bb80ad7fc81c1af70bf264
|
7
|
+
data.tar.gz: 1a5b01192bf8749c4a2a78e45b4f97bcbfdf84c5f8731363e35b7bb5474d70830fdc06b1b94e8afcddcfaa0f28e9ad6b49bf2b81d327da70439aba105b530a23
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby
|
1
|
+
ruby-2.7.0
|
data/.travis.yml
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
3
|
rvm:
|
4
|
-
- 1.9.3
|
5
|
-
- 2.0
|
6
|
-
- 2.1
|
7
4
|
- 2.2
|
8
|
-
- 2.3
|
9
|
-
- 2.4
|
10
|
-
- 2.5
|
11
|
-
-
|
12
|
-
-
|
5
|
+
- 2.3
|
6
|
+
- 2.4
|
7
|
+
- 2.5
|
8
|
+
- 2.6
|
9
|
+
- 2.7
|
10
|
+
- jruby-9.2.9.0
|
13
11
|
- ruby-head
|
14
12
|
- jruby-head
|
15
13
|
|
@@ -20,7 +18,6 @@ matrix:
|
|
20
18
|
- rvm: jruby-head
|
21
19
|
|
22
20
|
before_install:
|
23
|
-
- gem install bundler
|
24
21
|
- sudo apt-get -y install openssh-server
|
25
22
|
- ssh-keygen -q -t rsa -N "" -f ~/.ssh/id_rsa
|
26
23
|
- cp $HOME/.ssh/id_rsa.pub $HOME/.ssh/authorized_keys
|
data/datacenter.gemspec
CHANGED
@@ -18,11 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'net-ssh', '~> 2
|
21
|
+
spec.add_dependency 'net-ssh', '~> 5.2'
|
22
22
|
spec.add_dependency 'class_config'
|
23
23
|
|
24
|
-
spec.add_development_dependency '
|
25
|
-
spec.add_development_dependency 'rake', '~> 11.0'
|
24
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
26
25
|
spec.add_development_dependency 'minitest', '~> 5.0', '< 5.11'
|
27
26
|
spec.add_development_dependency 'minitest-colorin', '~> 0.1'
|
28
27
|
spec.add_development_dependency 'minitest-line', '~> 0.6'
|
data/lib/datacenter.rb
CHANGED
@@ -10,4 +10,9 @@ module Datacenter
|
|
10
10
|
attr_config :process_cache_expiration, 2
|
11
11
|
end
|
12
12
|
|
13
|
-
Dir.glob(File.expand_path('datacenter/**/*.rb', File.dirname(__FILE__))).sort.each { |f| require f }
|
13
|
+
Dir.glob(File.expand_path('datacenter/**/*.rb', File.dirname(__FILE__))).sort.each { |f| require f }
|
14
|
+
|
15
|
+
if RUBY_ENGINE == 'jruby'
|
16
|
+
Net::SSH::Transport::Algorithms::ALGORITHMS.values.each { |algs| algs.reject! { |a| a =~ /^ecd(sa|h)-sha2/ } }
|
17
|
+
Net::SSH::KnownHosts::SUPPORTED_TYPE.reject! { |t| t =~ /^ecd(sa|h)-sha2/ }
|
18
|
+
end
|
@@ -7,7 +7,7 @@ module Datacenter
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def open
|
10
|
-
@session ||= Net::SSH.start
|
10
|
+
@session ||= Net::SSH.start(*args)
|
11
11
|
end
|
12
12
|
|
13
13
|
def close
|
@@ -26,7 +26,7 @@ module Datacenter
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.open(*args)
|
29
|
-
shell = new
|
29
|
+
shell = new(*args)
|
30
30
|
shell.open
|
31
31
|
yield shell
|
32
32
|
ensure
|
data/lib/datacenter/version.rb
CHANGED
data/spec/coverage_helper.rb
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
require 'simplecov'
|
2
2
|
require 'coveralls'
|
3
3
|
|
4
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
5
|
-
SimpleCov::Formatter::HTMLFormatter,
|
6
|
-
Coveralls::SimpleCov::Formatter
|
7
|
-
]
|
4
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
|
8
5
|
SimpleCov.start
|
data/spec/shell_spec.rb
CHANGED
metadata
CHANGED
@@ -1,159 +1,145 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datacenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Naiman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2
|
19
|
+
version: '5.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2
|
26
|
+
version: '5.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: class_config
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.12'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.12'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - ~>
|
45
|
+
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '13.0'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - ~>
|
52
|
+
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '13.0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: minitest
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - ~>
|
59
|
+
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
61
|
version: '5.0'
|
76
|
-
- - <
|
62
|
+
- - "<"
|
77
63
|
- !ruby/object:Gem::Version
|
78
64
|
version: '5.11'
|
79
65
|
type: :development
|
80
66
|
prerelease: false
|
81
67
|
version_requirements: !ruby/object:Gem::Requirement
|
82
68
|
requirements:
|
83
|
-
- - ~>
|
69
|
+
- - "~>"
|
84
70
|
- !ruby/object:Gem::Version
|
85
71
|
version: '5.0'
|
86
|
-
- - <
|
72
|
+
- - "<"
|
87
73
|
- !ruby/object:Gem::Version
|
88
74
|
version: '5.11'
|
89
75
|
- !ruby/object:Gem::Dependency
|
90
76
|
name: minitest-colorin
|
91
77
|
requirement: !ruby/object:Gem::Requirement
|
92
78
|
requirements:
|
93
|
-
- - ~>
|
79
|
+
- - "~>"
|
94
80
|
- !ruby/object:Gem::Version
|
95
81
|
version: '0.1'
|
96
82
|
type: :development
|
97
83
|
prerelease: false
|
98
84
|
version_requirements: !ruby/object:Gem::Requirement
|
99
85
|
requirements:
|
100
|
-
- - ~>
|
86
|
+
- - "~>"
|
101
87
|
- !ruby/object:Gem::Version
|
102
88
|
version: '0.1'
|
103
89
|
- !ruby/object:Gem::Dependency
|
104
90
|
name: minitest-line
|
105
91
|
requirement: !ruby/object:Gem::Requirement
|
106
92
|
requirements:
|
107
|
-
- - ~>
|
93
|
+
- - "~>"
|
108
94
|
- !ruby/object:Gem::Version
|
109
95
|
version: '0.6'
|
110
96
|
type: :development
|
111
97
|
prerelease: false
|
112
98
|
version_requirements: !ruby/object:Gem::Requirement
|
113
99
|
requirements:
|
114
|
-
- - ~>
|
100
|
+
- - "~>"
|
115
101
|
- !ruby/object:Gem::Version
|
116
102
|
version: '0.6'
|
117
103
|
- !ruby/object:Gem::Dependency
|
118
104
|
name: simplecov
|
119
105
|
requirement: !ruby/object:Gem::Requirement
|
120
106
|
requirements:
|
121
|
-
- - ~>
|
107
|
+
- - "~>"
|
122
108
|
- !ruby/object:Gem::Version
|
123
109
|
version: '0.12'
|
124
110
|
type: :development
|
125
111
|
prerelease: false
|
126
112
|
version_requirements: !ruby/object:Gem::Requirement
|
127
113
|
requirements:
|
128
|
-
- - ~>
|
114
|
+
- - "~>"
|
129
115
|
- !ruby/object:Gem::Version
|
130
116
|
version: '0.12'
|
131
117
|
- !ruby/object:Gem::Dependency
|
132
118
|
name: coveralls
|
133
119
|
requirement: !ruby/object:Gem::Requirement
|
134
120
|
requirements:
|
135
|
-
- - ~>
|
121
|
+
- - "~>"
|
136
122
|
- !ruby/object:Gem::Version
|
137
123
|
version: '0.8'
|
138
124
|
type: :development
|
139
125
|
prerelease: false
|
140
126
|
version_requirements: !ruby/object:Gem::Requirement
|
141
127
|
requirements:
|
142
|
-
- - ~>
|
128
|
+
- - "~>"
|
143
129
|
- !ruby/object:Gem::Version
|
144
130
|
version: '0.8'
|
145
131
|
- !ruby/object:Gem::Dependency
|
146
132
|
name: pry-nav
|
147
133
|
requirement: !ruby/object:Gem::Requirement
|
148
134
|
requirements:
|
149
|
-
- - ~>
|
135
|
+
- - "~>"
|
150
136
|
- !ruby/object:Gem::Version
|
151
137
|
version: '0.2'
|
152
138
|
type: :development
|
153
139
|
prerelease: false
|
154
140
|
version_requirements: !ruby/object:Gem::Requirement
|
155
141
|
requirements:
|
156
|
-
- - ~>
|
142
|
+
- - "~>"
|
157
143
|
- !ruby/object:Gem::Version
|
158
144
|
version: '0.2'
|
159
145
|
description: Manage and monitor servers and processes
|
@@ -163,11 +149,11 @@ executables: []
|
|
163
149
|
extensions: []
|
164
150
|
extra_rdoc_files: []
|
165
151
|
files:
|
166
|
-
- .coveralls.yml
|
167
|
-
- .gitignore
|
168
|
-
- .ruby-gemset
|
169
|
-
- .ruby-version
|
170
|
-
- .travis.yml
|
152
|
+
- ".coveralls.yml"
|
153
|
+
- ".gitignore"
|
154
|
+
- ".ruby-gemset"
|
155
|
+
- ".ruby-version"
|
156
|
+
- ".travis.yml"
|
171
157
|
- Gemfile
|
172
158
|
- LICENSE.txt
|
173
159
|
- README.md
|
@@ -200,17 +186,16 @@ require_paths:
|
|
200
186
|
- lib
|
201
187
|
required_ruby_version: !ruby/object:Gem::Requirement
|
202
188
|
requirements:
|
203
|
-
- -
|
189
|
+
- - ">="
|
204
190
|
- !ruby/object:Gem::Version
|
205
191
|
version: '0'
|
206
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
193
|
requirements:
|
208
|
-
- -
|
194
|
+
- - ">="
|
209
195
|
- !ruby/object:Gem::Version
|
210
196
|
version: '0'
|
211
197
|
requirements: []
|
212
|
-
|
213
|
-
rubygems_version: 2.4.8
|
198
|
+
rubygems_version: 3.1.2
|
214
199
|
signing_key:
|
215
200
|
specification_version: 4
|
216
201
|
summary: Manage and monitor servers and processes
|