foreman_remote_execution 1.7.0 → 1.7.1

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: dce0a20932dcc7a0f7f85b475d25881bf007b06cfc27534eee15687b102baad4
4
- data.tar.gz: 2af8d0ae7541d622fc61e505b5a74f20cf3317e4f5b7ad44338319b5649eb317
3
+ metadata.gz: d41d1cca071fdfacdc4d90bccc1ad8fe601cd11dfbe7fa24336b162f814820e2
4
+ data.tar.gz: 396b3d87bb864f6697dc641efd0b242af8b52148d339d33a05ce47ddf84a107f
5
5
  SHA512:
6
- metadata.gz: afaf649197e2ac98a5bf5df6c5e7e81a22b06f58d3326a737dcacd4f97a30286cfd787de3c61761f426544fdd7be2a8cd633d06e23cb71caa235e40c75186a77
7
- data.tar.gz: 90c8a3b1dd576c05e0e3004023a2980a9d3352c055380b9e629b5495903d680d6912435ddf6039d0e38c532d8d0e28c027a0ae61174202b2ecb2124ec8c4cd0f
6
+ metadata.gz: 70c95de572058c181a0eca7c3bd63b36844bcccc7f6e494ed5670713d3b232c2135547b3ca8fb85252bea16f1a055822dd988dcb8d109b193ceef8dda4886f2f
7
+ data.tar.gz: 722424c91de10100b3f47c3f21a4a3e18aebf1cad5916a98c0d2f92a420cb372149586e8e034b39f325197be4687f56ee8bab3c7a444f1a305301aa522b9761f
data/.rubocop.yml CHANGED
@@ -111,3 +111,9 @@ Style/FrozenStringLiteralComment:
111
111
 
112
112
  Layout/EmptyLineAfterGuardClause:
113
113
  Enabled: false
114
+
115
+ Layout/AlignHash:
116
+ Enabled: false
117
+
118
+ Rails/ReflectionClassName:
119
+ Enabled: false
@@ -1,5 +1,5 @@
1
1
  module JobInvocationOutputHelper
2
- COLOR_PATTERN = /\e\[.*?m/
2
+ COLOR_PATTERN = /\e\[.*?m/.freeze
3
3
  CONSOLE_COLOR = {
4
4
  '31' => 'red',
5
5
  '32' => 'lightgreen',
@@ -45,7 +45,8 @@ module Actions
45
45
  additional_options = { :hostname => provider.find_ip_or_hostname(host),
46
46
  :script => script,
47
47
  :execution_timeout_interval => job_invocation.execution_timeout_interval,
48
- :secrets => secrets }
48
+ :secrets => secrets,
49
+ :use_batch_triggering => true}
49
50
  action_options = provider.proxy_command_options(template_invocation, host)
50
51
  .merge(additional_options)
51
52
 
@@ -9,6 +9,7 @@ module Actions
9
9
  middleware.use Actions::Middleware::BindJobInvocation
10
10
  middleware.use Actions::Middleware::RecurringLogic
11
11
  middleware.use Actions::Middleware::WatchDelegatedProxySubTasks
12
+ middleware.use Actions::Middleware::ProxyBatchTriggering
12
13
 
13
14
  class CheckOnProxyActions; end
14
15
 
@@ -20,7 +20,11 @@ class RemoteExecutionProvider
20
20
  end
21
21
 
22
22
  def proxy_command_options(template_invocation, host)
23
- {}
23
+ {:proxy_operation_name => proxy_operation_name}
24
+ end
25
+
26
+ def proxy_operation_name
27
+ 'ssh'
24
28
  end
25
29
 
26
30
  def humanized_name
@@ -25,6 +25,10 @@ class SSHExecutionProvider < RemoteExecutionProvider
25
25
  host_setting(host, :remote_execution_ssh_key_passphrase)
26
26
  end
27
27
 
28
+ def proxy_operation_name
29
+ 'ssh'
30
+ end
31
+
28
32
  private
29
33
 
30
34
  def ssh_user(host)
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency 'deface'
28
28
  s.add_dependency 'dynflow', '>= 1.0.1', '< 2.0.0'
29
29
  s.add_dependency 'foreman_remote_execution_core'
30
- s.add_dependency 'foreman-tasks', '~> 0.13'
30
+ s.add_dependency 'foreman-tasks', '>= 0.15.1', '< 1.0.0'
31
31
 
32
32
  s.add_development_dependency 'factory_bot_rails', '~> 4.8.0'
33
33
  s.add_development_dependency 'rubocop'
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '1.7.0'.freeze
2
+ VERSION = '1.7.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
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: deface
@@ -62,16 +62,22 @@ dependencies:
62
62
  name: foreman-tasks
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 0.15.1
68
+ - - "<"
66
69
  - !ruby/object:Gem::Version
67
- version: '0.13'
70
+ version: 1.0.0
68
71
  type: :runtime
69
72
  prerelease: false
70
73
  version_requirements: !ruby/object:Gem::Requirement
71
74
  requirements:
72
- - - "~>"
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 0.15.1
78
+ - - "<"
73
79
  - !ruby/object:Gem::Version
74
- version: '0.13'
80
+ version: 1.0.0
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: factory_bot_rails
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -414,7 +420,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
414
420
  version: '0'
415
421
  requirements: []
416
422
  rubyforge_project:
417
- rubygems_version: 2.7.6
423
+ rubygems_version: 2.7.3
418
424
  signing_key:
419
425
  specification_version: 4
420
426
  summary: A plugin bringing remote execution to the Foreman, completing the config