hammer_cli_foreman_remote_execution 0.4.3 → 0.4.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f63588233e5fbd94829bcdbbf095d496a8873c4a6764c526c23418d7a459cc9
4
- data.tar.gz: f68bcbb8e2e4a5216836b474328424ffe4486dd316029cc00de19e1469dfe9df
3
+ metadata.gz: 35c18456a6f4f7f7a6d6547250a9ff3edea56ea07902b1e604bfe5cf798a1139
4
+ data.tar.gz: 18f76d8b9bcb06b3adf9fecab553c9f478fbeea3514b25fd811896c5e9c7dba3
5
5
  SHA512:
6
- metadata.gz: 8d82e4bb272474ca0dbefd817b8e08b157a0283e5548464fcb8595e295f2ea74fad998a722b7151a8ab5d9f714d72835979f14e675b8596bb497baf6de6045d7
7
- data.tar.gz: 7d265b183f0b96b644a47305775ef2cc049eae5bea2ff5918450310bfbe459edf4d0b09b0255edfaa3f221c5134ba2d54b8d1b1abba47648abb1e3bd09ca05fe
6
+ metadata.gz: 332417135466dedc274ee32e6bf46b5a13c4bdfdd66326ccee2f757927929f5276a13a656d9a28465b585f6341f2c3ad8768ba7e7a76f5540d69f2c5647778c9
7
+ data.tar.gz: 64b9fec41983d8e4299d6187176bf34cbff83608aef4447168aeeb865baad4f5cdd262af6dafcb55dcf22c49fbdbcf5d4adae5d2fc397a2262e6191b562b92bb
@@ -34,6 +34,10 @@ module HammerCLIForemanRemoteExecution
34
34
  JobInvocation.extend_data(invocation)
35
35
  end
36
36
 
37
+ def request_params
38
+ super.merge(:include_hosts => false)
39
+ end
40
+
37
41
  build_options
38
42
  end
39
43
 
@@ -83,11 +87,12 @@ module HammerCLIForemanRemoteExecution
83
87
 
84
88
  build_options do |o|
85
89
  o.expand(:none)
86
- o.without(:host_status)
90
+ o.without(:host_status, :include_hosts)
87
91
  end
88
92
 
89
93
  def request_params
90
94
  params = super
95
+ params[:include_hosts] = option_show_host_status? || false
91
96
  params[:host_status] = true if option_show_host_status?
92
97
  params
93
98
  end
@@ -203,7 +208,7 @@ module HammerCLIForemanRemoteExecution
203
208
  end
204
209
 
205
210
  build_options do |o|
206
- o.without(:targeting_type)
211
+ o.without(:targeting_type, :include_hosts)
207
212
  end
208
213
  end
209
214
 
@@ -25,7 +25,7 @@ module HammerCLIForemanRemoteExecution
25
25
  field :description, _('Description'), Fields::Text
26
26
  field :cloned_from_id, _("Cloned from id"), nil, :hide_blank => true
27
27
  field :template_inputs, _('Inputs')
28
- field :locked, _('Locked')
28
+ field :locked, _('Locked'), Fields::Boolean
29
29
  HammerCLIForeman::References.taxonomies(self)
30
30
  end
31
31
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HammerCLIForemanRemoteExecution
4
4
  def self.version
5
- @version ||= Gem::Version.new '0.4.3'
5
+ @version ||= Gem::Version.new '0.4.5'
6
6
  end
7
7
  end
@@ -40,6 +40,14 @@ describe HammerCLIForemanRemoteExecution::JobTemplate do
40
40
  with_params ['--id=1'] do
41
41
  it_should_print_columns ['ID', 'Name', 'Job Category', 'Provider', 'Type', 'Locked']
42
42
  end
43
+
44
+ it 'should format locked field as "no"' do
45
+ cmd.stubs(:context).returns(ctx.update(:adapter => :base))
46
+ out, _err = capture_io do
47
+ cmd.run(['--id=1'])
48
+ end
49
+ _(out).must_match(/Locked:\s+no/)
50
+ end
43
51
  end
44
52
  end
45
53
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 4.0.10
131
+ rubygems_version: 4.0.20
132
132
  specification_version: 4
133
133
  summary: CLI for the Foreman remote execution plugin
134
134
  test_files: