hammer_cli_foreman_ansible 0.4.0 → 0.5.0

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: 12f80a5bb288d8683aad9b3629edffbbd32bfb4afdf7aa597e4b370e2c19da58
4
- data.tar.gz: 03d9f616b2d17580d15e93cae6fb79e0c6b599091fa4f0ed9cb7d6d2db986cdf
3
+ metadata.gz: e2378fa0dc9b16ad52e6fb9c3d368c23b2d8db6d4ba64bfc31e273b1ba1b2e21
4
+ data.tar.gz: 3d702aa4392493735abd50d5acf2f382e9f5c42809d2d7b13558df951fb5e87c
5
5
  SHA512:
6
- metadata.gz: 12f88c7777fae85e77ae1288aafb09e08d569989b7a19bedbc939cbaa0d374161b47e23de3f3a4ec35ae78567982d0dc832f4974a14223d0aed05e76092ff7f1
7
- data.tar.gz: 4bf5229134f1ce01c9ab517d5a9adb9281a5b9be0cced399fa78bbe55134e571525e51e9aed1c7802ef464a36162f7965eb3683faa294b89f5f99cf73be19c7f
6
+ metadata.gz: '09b412c43b4a0050ee41d2e7e2657c1928c81fe1d84ead4323c70e254e92e31ac980c904b2c0d5f4e06f7970ab6269b60fb3d4ce39329607ee3328f0d25b6f56'
7
+ data.tar.gz: d8e97a5f33a6fa060f8f3b8c29886c8827eb5bca2170290dbce026c80bfbef2ae53878c96b0269a9e3863df7985189ecefa8b98419c8bfc81bab2323fcd10ffb
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module HammerCLIForemanAnsible
4
+ module CommandExtensions
5
+ class JobTemplate < HammerCLI::CommandExtensions
6
+ before_print do |data|
7
+ unless data['provider_type'] == 'Ansible'
8
+ data.delete('ansible_callback_enabled')
9
+ end
10
+ end
11
+
12
+ output do |definition|
13
+ definition.insert(:before, :description) do
14
+ field :ansible_callback_enabled, _('Ansible Callback Enabled'), Fields::Boolean
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,2 +1,3 @@
1
1
  require 'hammer_cli_foreman_ansible/command_extensions/resolver'
2
2
  require 'hammer_cli_foreman_ansible/command_extensions/inventory'
3
+ require 'hammer_cli_foreman_ansible/command_extensions/job_template'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HammerCLIForemanAnsible
4
4
  def self.version
5
- @version ||= Gem::Version.new '0.4.0'
5
+ @version ||= Gem::Version.new '0.5.0'
6
6
  end
7
7
  end
@@ -3,6 +3,7 @@ module HammerCLIForemanAnsible
3
3
  require 'hammer_cli_foreman'
4
4
  require 'hammer_cli_foreman/host'
5
5
  require 'hammer_cli_foreman/hostgroup'
6
+ require 'hammer_cli_foreman_remote_execution'
6
7
 
7
8
  require 'hammer_cli_foreman_ansible/version'
8
9
  require 'hammer_cli_foreman_ansible/i18n'
@@ -14,6 +15,8 @@ module HammerCLIForemanAnsible
14
15
 
15
16
  require 'hammer_cli_foreman_ansible/command_extensions'
16
17
 
18
+ HammerCLIForemanRemoteExecution::JobTemplate::InfoCommand.extend_with(HammerCLIForemanAnsible::CommandExtensions::JobTemplate.new)
19
+
17
20
  HammerCLI::MainCommand.lazy_subcommand(
18
21
  'ansible',
19
22
  'Manage foreman ansible',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleh Fedorenko
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_foreman
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.12.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: hammer_cli_foreman_remote_execution
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -38,7 +52,7 @@ dependencies:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: 12.3.3
41
- description:
55
+ description:
42
56
  email:
43
57
  - ofedoren@redhat.com
44
58
  executables: []
@@ -56,6 +70,7 @@ files:
56
70
  - lib/hammer_cli_foreman_ansible/associated_ansible_role.rb
57
71
  - lib/hammer_cli_foreman_ansible/command_extensions.rb
58
72
  - lib/hammer_cli_foreman_ansible/command_extensions/inventory.rb
73
+ - lib/hammer_cli_foreman_ansible/command_extensions/job_template.rb
59
74
  - lib/hammer_cli_foreman_ansible/command_extensions/resolver.rb
60
75
  - lib/hammer_cli_foreman_ansible/host.rb
61
76
  - lib/hammer_cli_foreman_ansible/hostgroup.rb
@@ -70,7 +85,7 @@ homepage: https://github.com/theforeman/hammer-cli-foreman-ansible
70
85
  licenses:
71
86
  - GPL-3.0
72
87
  metadata: {}
73
- post_install_message:
88
+ post_install_message:
74
89
  rdoc_options: []
75
90
  require_paths:
76
91
  - lib
@@ -85,13 +100,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
100
  - !ruby/object:Gem::Version
86
101
  version: '0'
87
102
  requirements: []
88
- rubygems_version: 3.1.2
89
- signing_key:
103
+ rubygems_version: 3.1.4
104
+ signing_key:
90
105
  specification_version: 4
91
106
  summary: Foreman Ansible plugin for Hammer CLI
92
107
  test_files:
93
108
  - test/data/3.3/foreman_api.json
94
- - test/functional/test_helper.rb
95
109
  - test/functional/host_test.rb
96
110
  - test/functional/hostgroup_test.rb
111
+ - test/functional/test_helper.rb
97
112
  - test/test_helper.rb