foreman_remote_execution 1.6.1 → 1.6.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c69660ec871252ef2e050387571203f0bc88304fa95178ef4c8483f728fd2324
|
4
|
+
data.tar.gz: 42aa074014895c236544f7ae4500214df93cb28f3590faa9a31fd3ac166746aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b207852afa534924b6a029b756492ebb7543ec39064e010a8c66bfd1ab68cd9ff53911bd437736f53308f78b7d55cbee73413e6c267ecbdf14777d78b7380a3c
|
7
|
+
data.tar.gz: 66e6b7ed2f4780c3b33b468691c90ace64fe3cc1f62fad6446c039c119fa7d8193cd6b15cf6566a73c48c90c0ed4199d26eb66190ff3383ccacd5db86fd809df
|
@@ -30,7 +30,7 @@ module Api
|
|
30
30
|
param :input_type, TemplateInput::TYPES.keys.map(&:to_s), :required => true, :desc => N_('Input type')
|
31
31
|
param :fact_name, String, :required => false, :desc => N_('Fact name, used when input type is fact')
|
32
32
|
param :variable_name, String, :required => false, :desc => N_('Variable name, used when input type is variable')
|
33
|
-
param :
|
33
|
+
param :puppet_class_name, String, :required => false, :desc => N_('Puppet class name, used when input type is puppet_parameter')
|
34
34
|
param :puppet_parameter_name, String, :required => false, :desc => N_('Puppet parameter name, used when input type is puppet_parameter')
|
35
35
|
param :options, Array, :required => false, :desc => N_('Selectable values for user inputs')
|
36
36
|
end
|
@@ -23,8 +23,9 @@ class RemoteExecutionFeature < ApplicationRecord
|
|
23
23
|
self.find_by(label: label) || raise(::Foreman::Exception.new(N_('Unknown remote execution feature %s'), label))
|
24
24
|
end
|
25
25
|
|
26
|
+
# rubocop:disable Metrics/PerceivedComplexity
|
26
27
|
def self.register(label, name, options = {})
|
27
|
-
return false
|
28
|
+
return false if Foreman.in_setup_db_rake? || !RemoteExecutionFeature.table_exists?
|
28
29
|
options.assert_valid_keys(*VALID_OPTIONS)
|
29
30
|
options[:host_action_button] = false unless options.key?(:host_action_button)
|
30
31
|
|
@@ -54,4 +55,5 @@ class RemoteExecutionFeature < ApplicationRecord
|
|
54
55
|
return feature
|
55
56
|
end
|
56
57
|
end
|
58
|
+
# rubocop:enable Metrics/PerceivedComplexity
|
57
59
|
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.6.
|
4
|
+
version: 1.6.2
|
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: 2018-
|
11
|
+
date: 2018-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|