foreman_remote_execution_core 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bfdb9a519170fb2a183ffc6de0b287567c6055696e67e7f0d2cba198d5080df
4
- data.tar.gz: ff28e0f95331c7a4089e24349b064b6d7a56d398e480f86b8e3022200b2d5535
3
+ metadata.gz: ba1645f191d187cfd5564f4498c5ccd30be30997de48e6c0238f8d9894201874
4
+ data.tar.gz: 10990da0475e8df75da0a3e17e5fc08f6e04d9320a71c640aab920d44c3f1105
5
5
  SHA512:
6
- metadata.gz: b835a6a82dd30ae99560b9c43a190f375d3a59a52db886e4e99b0280c31b0df73e0b85d9a03e22f80564f294893d88798b68572ebb62914d3f1263248d9c14be
7
- data.tar.gz: 01c800450ae2c8432ed0482ac0058897640f7a7b0f906cda179cf056520286cd8861f24dea4e6bb429b5226498ac5f8601fa5bf6acef5632b4335c5d01a2871a
6
+ metadata.gz: 9e001b849e2c57aab3233ca917bc671bcd347b88edd410457b417804407c85687234a37ed73517f628fc5a417dec57a133d2e22aca8e3b6d832fe7871c4c386e
7
+ data.tar.gz: 6e09ecf3e607fbfbfb0c5f7321f4a2af280165303f18323230977a3561f80dfabb921555cfb2ecc502b9948b3c1d24ade068e2e0910b7b651d4dfb6c609890da
@@ -70,6 +70,10 @@ module ForemanRemoteExecutionCore
70
70
  end
71
71
  require 'foreman_remote_execution_core/dispatcher'
72
72
  require 'foreman_remote_execution_core/actions'
73
+
74
+ if defined?(::SmartProxyDynflowCore)
75
+ SmartProxyDynflowCore::TaskLauncherRegistry.register('ssh', ForemanTasksCore::TaskLauncher::Batch)
76
+ end
73
77
  end
74
78
 
75
79
  require 'foreman_remote_execution_core/version'
@@ -8,7 +8,8 @@ module ForemanRemoteExecutionCore
8
8
  :step_id => run_step_id,
9
9
  :uuid => execution_plan_id
10
10
  }
11
- ForemanRemoteExecutionCore.runner_class.build(input.merge(additional_options))
11
+ ForemanRemoteExecutionCore.runner_class.build(input.merge(additional_options),
12
+ suspended_action: suspended_action)
12
13
  end
13
14
 
14
15
  def runner_dispatcher
@@ -24,8 +24,8 @@ module ForemanRemoteExecutionCore
24
24
  @data.freeze
25
25
  end
26
26
 
27
- def build(options)
28
- new(options)
27
+ def build(options, suspended_action:)
28
+ new(options, suspended_action: suspended_action)
29
29
  end
30
30
  end
31
31
 
@@ -3,8 +3,8 @@ module ForemanRemoteExecutionCore
3
3
 
4
4
  DEFAULT_REFRESH_INTERVAL = 60
5
5
 
6
- def initialize(options, user_method)
7
- super(options, user_method)
6
+ def initialize(options, user_method, suspended_action: nil)
7
+ super(options, user_method, suspended_action: suspended_action)
8
8
  @callback_host = options[:callback_host]
9
9
  @task_id = options[:uuid]
10
10
  @step_id = options[:step_id]
@@ -49,7 +49,7 @@ module ForemanRemoteExecutionCore
49
49
  end
50
50
 
51
51
  class DzdoUserMethod < SudoUserMethod
52
- LOGIN_PROMPT = /password/i
52
+ LOGIN_PROMPT = /password/i.freeze
53
53
 
54
54
  def login_prompt
55
55
  LOGIN_PROMPT
@@ -108,8 +108,8 @@ module ForemanRemoteExecutionCore
108
108
  DEFAULT_REFRESH_INTERVAL = 1
109
109
  MAX_PROCESS_RETRIES = 4
110
110
 
111
- def initialize(options, user_method)
112
- super()
111
+ def initialize(options, user_method, suspended_action: nil)
112
+ super suspended_action: suspended_action
113
113
  @host = options.fetch(:hostname)
114
114
  @script = options.fetch(:script)
115
115
  @ssh_user = options.fetch(:ssh_user, 'root')
@@ -127,7 +127,7 @@ module ForemanRemoteExecutionCore
127
127
  @user_method = user_method
128
128
  end
129
129
 
130
- def self.build(options)
130
+ def self.build(options, suspended_action:)
131
131
  effective_user = options.fetch(:effective_user, nil)
132
132
  ssh_user = options.fetch(:ssh_user, 'root')
133
133
  effective_user_method = options.fetch(:effective_user_method, 'sudo')
@@ -146,7 +146,7 @@ module ForemanRemoteExecutionCore
146
146
  raise "effective_user_method '#{effective_user_method}' not supported"
147
147
  end
148
148
 
149
- new(options, user_method)
149
+ new(options, user_method, suspended_action: suspended_action)
150
150
  end
151
151
 
152
152
  def start
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecutionCore
2
- VERSION = '1.1.5'.freeze
2
+ VERSION = '1.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-14 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.5
19
+ version: 0.3.1
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: 0.1.5
26
+ version: 0.3.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: net-ssh
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 2.7.6
77
+ rubygems_version: 2.7.3
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: Foreman remote execution - core bits