sshkit-backends-netssh_global 0.0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sshkit/backends/version.rb +1 -1
- data/lib/sshkit/command_sudo_ssh_forward.rb +11 -1
- data/sshkit-backends-netssh_global.gemspec +4 -4
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 972d30c885784d1f74638dd6277c2f8007faf3da
|
4
|
+
data.tar.gz: 4fdc097a1e5ecaa5689edfd1e4e7a8bf8b1fbb74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c5a1bb0508b25b9a020630e0b60681e3099bbcc9413c31d30cbcf9f2f42e5b3cf3425a860ac58a3a77aa9f6c4d244232b1de206b73b27e04735e8ce2fb4f1f2
|
7
|
+
data.tar.gz: 7b20f2aab92f484953ead04c4b7056433699580c09d28ff405e77a4a1b08cc95d30338a23a97891e222d76811794323911a0b406a3491613e89d2952a1fc9d39
|
@@ -20,6 +20,16 @@ module SSHKit
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
def environment_string
|
24
|
+
environment_hash.collect do |key,value|
|
25
|
+
if key.is_a? Symbol
|
26
|
+
"#{key.to_s.upcase}=#{value}"
|
27
|
+
else
|
28
|
+
"#{key.to_s}=#{value}"
|
29
|
+
end
|
30
|
+
end.join(' ')
|
31
|
+
end
|
32
|
+
|
23
33
|
def environment_hash
|
24
34
|
default_env.merge(options_env)
|
25
35
|
end
|
@@ -59,7 +69,7 @@ module SSHKit
|
|
59
69
|
end
|
60
70
|
|
61
71
|
def ssh_command?
|
62
|
-
options.fetch(:ssh_commands, []).include?(command)
|
72
|
+
options.fetch(:ssh_commands, []).include?(command.to_sym)
|
63
73
|
end
|
64
74
|
|
65
75
|
def ssh_forwarding_enabled?
|
@@ -4,13 +4,13 @@ require File.expand_path('../lib/sshkit/backends/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
|
6
6
|
gem.authors = ["Theo Cushion", "Dennis Ideler"]
|
7
|
-
gem.email = ["
|
7
|
+
gem.email = ["engineering+sshkit-backends-netssh_global@fundingcircle.com"]
|
8
8
|
gem.summary = %q{SSHKit backend for globally sudoing commands}
|
9
9
|
gem.description = %q{A backend to be used in conjunction with Capistrano 3
|
10
10
|
and SSHKit to allow deployment on setups where users login as one identity and
|
11
11
|
then need to sudo to a different identity for each command.}
|
12
|
-
gem.homepage = "http://github.com/
|
13
|
-
|
12
|
+
gem.homepage = "http://github.com/FundingCircle/sshkit-backends-netssh_global"
|
13
|
+
gem.license = "BSD-3-Clause"
|
14
14
|
|
15
15
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
gem.files = `git ls-files`.split("\n")
|
@@ -19,7 +19,7 @@ then need to sudo to a different identity for each command.}
|
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
gem.version = SSHKit::Backends::NetsshGlobal::VERSION
|
21
21
|
|
22
|
-
gem.add_runtime_dependency('sshkit', '1.
|
22
|
+
gem.add_runtime_dependency('sshkit', '~> 1.11')
|
23
23
|
|
24
24
|
gem.add_development_dependency('minitest', ['>= 2.11.3', '< 2.12.0'])
|
25
25
|
gem.add_development_dependency('rake')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sshkit-backends-netssh_global
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Cushion
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sshkit
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.
|
20
|
+
version: '1.11'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.
|
27
|
+
version: '1.11'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: minitest
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,8 +92,7 @@ description: |-
|
|
92
92
|
and SSHKit to allow deployment on setups where users login as one identity and
|
93
93
|
then need to sudo to a different identity for each command.
|
94
94
|
email:
|
95
|
-
-
|
96
|
-
- dennis.ideler@fundingcircle.com
|
95
|
+
- engineering+sshkit-backends-netssh_global@fundingcircle.com
|
97
96
|
executables: []
|
98
97
|
extensions: []
|
99
98
|
extra_rdoc_files: []
|
@@ -115,8 +114,9 @@ files:
|
|
115
114
|
- test/support/vagrant_wrapper.rb
|
116
115
|
- test/unit/backends/test_netssh_global.rb
|
117
116
|
- test/unit/test_command_sudo_ssh_forward.rb
|
118
|
-
homepage: http://github.com/
|
119
|
-
licenses:
|
117
|
+
homepage: http://github.com/FundingCircle/sshkit-backends-netssh_global
|
118
|
+
licenses:
|
119
|
+
- BSD-3-Clause
|
120
120
|
metadata: {}
|
121
121
|
post_install_message:
|
122
122
|
rdoc_options: []
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.6.13
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: SSHKit backend for globally sudoing commands
|
@@ -145,3 +145,4 @@ test_files:
|
|
145
145
|
- test/support/vagrant_wrapper.rb
|
146
146
|
- test/unit/backends/test_netssh_global.rb
|
147
147
|
- test/unit/test_command_sudo_ssh_forward.rb
|
148
|
+
has_rdoc:
|