smart_proxy_remote_execution_ssh 0.1.6 → 0.4.0

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.
@@ -1,7 +1,7 @@
1
1
  module Proxy
2
2
  module RemoteExecution
3
3
  module Ssh
4
- VERSION = '0.1.6'
4
+ VERSION = '0.4.0'
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,17 @@
1
+ module SmartProxyRemoteExecutionSsh
2
+ module WEBrickExt
3
+ # An extension to ::WEBrick::HTTPRequest to expost the socket object for highjacking for cockpit
4
+ module HTTPRequestExt
5
+ def meta_vars
6
+ super.merge('ext.hijack!' => -> {
7
+ # This stops Webrick from sending its own reply.
8
+ @request_line = nil;
9
+ # This stops Webrick from trying to read the next request on the socket.
10
+ @keep_alive = false;
11
+ return @socket;
12
+ })
13
+ end
14
+ end
15
+ end
16
+ ::WEBrick::HTTPRequest.send(:prepend, WEBrickExt::HTTPRequestExt)
17
+ end
@@ -10,3 +10,11 @@
10
10
  # for new data leave empty to use the runner's default
11
11
  # (1 second for regular, 60 seconds with async_ssh enabled)
12
12
  # :runner_refresh_interval:
13
+
14
+ # Defines the verbosity of logging coming from Net::SSH
15
+ # one of :debug, :info, :warn, :error, :fatal
16
+ # must be lower than general log level
17
+ # :ssh_log_level: fatal
18
+
19
+ # Remove working directories on job completion
20
+ # :cleanup_working_dirs: true
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_remote_execution_ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-06 00:00:00.000000000 Z
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '0'
20
20
  type: :development
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: '1.7'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -98,32 +98,59 @@ dependencies:
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '='
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.32.1
103
+ version: 0.82.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '='
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.82.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: foreman-tasks-core
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 0.3.1
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: 0.32.1
124
+ version: 0.3.1
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: smart_proxy_dynflow
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: 0.1.0
131
+ version: '0.1'
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: 0.1.0
125
- description: |2
126
- Ssh remote execution provider for Foreman Smart-Proxy
138
+ version: '0.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: net-ssh
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: " Ssh remote execution provider for Foreman Smart-Proxy\n"
127
154
  email:
128
155
  - inecas@redhat.com
129
156
  executables: []
@@ -136,16 +163,27 @@ files:
136
163
  - README.md
137
164
  - bundler.plugins.d/remote_execution_ssh.rb
138
165
  - lib/smart_proxy_remote_execution_ssh.rb
166
+ - lib/smart_proxy_remote_execution_ssh/actions/run_script.rb
139
167
  - lib/smart_proxy_remote_execution_ssh/api.rb
168
+ - lib/smart_proxy_remote_execution_ssh/async_scripts/control.sh
169
+ - lib/smart_proxy_remote_execution_ssh/async_scripts/retrieve.sh
170
+ - lib/smart_proxy_remote_execution_ssh/cockpit.rb
171
+ - lib/smart_proxy_remote_execution_ssh/dispatcher.rb
140
172
  - lib/smart_proxy_remote_execution_ssh/http_config.ru
173
+ - lib/smart_proxy_remote_execution_ssh/log_filter.rb
141
174
  - lib/smart_proxy_remote_execution_ssh/plugin.rb
175
+ - lib/smart_proxy_remote_execution_ssh/runners.rb
176
+ - lib/smart_proxy_remote_execution_ssh/runners/fake_script_runner.rb
177
+ - lib/smart_proxy_remote_execution_ssh/runners/polling_script_runner.rb
178
+ - lib/smart_proxy_remote_execution_ssh/runners/script_runner.rb
142
179
  - lib/smart_proxy_remote_execution_ssh/version.rb
180
+ - lib/smart_proxy_remote_execution_ssh/webrick_ext.rb
143
181
  - settings.d/remote_execution_ssh.yml.example
144
182
  homepage: https://github.com/theforeman/smart_proxy_remote_execution_ssh
145
183
  licenses:
146
- - GPLv3
184
+ - GPL-3.0
147
185
  metadata: {}
148
- post_install_message:
186
+ post_install_message:
149
187
  rdoc_options: []
150
188
  require_paths:
151
189
  - lib
@@ -160,9 +198,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
198
  - !ruby/object:Gem::Version
161
199
  version: '0'
162
200
  requirements: []
163
- rubyforge_project:
164
- rubygems_version: 2.6.12
165
- signing_key:
201
+ rubygems_version: 3.1.2
202
+ signing_key:
166
203
  specification_version: 4
167
204
  summary: Ssh remote execution provider for Foreman Smart-Proxy
168
205
  test_files: []