hammer_cli_foreman_ansible 0.3.2 → 0.3.3

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
- SHA1:
3
- metadata.gz: 4be510cfce6a703825aef89bb9790b9d1d0cd7e0
4
- data.tar.gz: cf4f2b25be3c5badcde36856278777f19eff41f1
2
+ SHA256:
3
+ metadata.gz: a63fcefc58731191aed327d9be1c107b16345f2428f825e339f41ee7cb8a4a5d
4
+ data.tar.gz: 6c9ce07e90583511bbe55a51273393b2b0e82a46ec7595ddf00bc106b52f3dd8
5
5
  SHA512:
6
- metadata.gz: cb77aad37001df22b6a3edf555ba99166337013a5b7db0c9c310ca1dcbc27687752765ec36b7173bea4523ede553abd37c4a561cde70e2193fed8fb648c4d91d
7
- data.tar.gz: 5030327b8b640ab59f3f5c847ad4ff8eeffd853c53b869fab9ee3ff8c3a433db2cc8b55fb6c3fc15fa76262c21803c4a03924b5ee115025aba612399fa2d825e
6
+ metadata.gz: 7d37d4b6c5490fb66e0d62802f360286d9f0940ac0d26cb099fb065783305365fee3ec7e328d0e973b7366d04d746e0a6f488255ad4d7f1e3f9a1c5afdb2e9cb
7
+ data.tar.gz: 32c611d308d8d459d6940f5688f41581cccb59823044793366fe07361d04bcb459d24958f85a3fe2da63985b32246e8673c252fc295820a8156ead4031814aad
@@ -11,6 +11,8 @@ module HammerCLIForemanAnsible
11
11
  require 'hammer_cli_foreman_ansible/host'
12
12
  require 'hammer_cli_foreman_ansible/hostgroup'
13
13
 
14
+ require 'hammer_cli_foreman_ansible/command_extensions'
15
+
14
16
  HammerCLI::MainCommand.lazy_subcommand(
15
17
  'ansible',
16
18
  'Manage foreman ansible',
@@ -0,0 +1 @@
1
+ require 'hammer_cli_foreman_ansible/command_extensions/resolver'
@@ -0,0 +1,15 @@
1
+ module HammerCLIForemanAnsible
2
+ module ResolverExtension
3
+ def create_ansible_roles_search_options(options, mode = nil)
4
+ if defined? HammerCLIKatello::IdResolver
5
+ create_search_options_without_katello_api(options, api.resource(:ansible_roles), mode)
6
+ else
7
+ create_search_options(options, api.resource(:ansible_roles), mode)
8
+ end
9
+ end
10
+ end
11
+
12
+ ::HammerCLIForeman::IdResolver.instance_eval do
13
+ include ResolverExtension
14
+ end
15
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HammerCLIForemanAnsible
4
4
  def self.version
5
- @version ||= Gem::Version.new '0.3.2'
5
+ @version ||= Gem::Version.new '0.3.3'
6
6
  end
7
7
  end
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleh Fedorenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-21 00:00:00.000000000 Z
11
+ date: 2021-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_foreman
@@ -80,6 +80,8 @@ files:
80
80
  - lib/hammer_cli_foreman_ansible/ansible.rb
81
81
  - lib/hammer_cli_foreman_ansible/ansible_roles.rb
82
82
  - lib/hammer_cli_foreman_ansible/ansible_variables.rb
83
+ - lib/hammer_cli_foreman_ansible/command_extensions.rb
84
+ - lib/hammer_cli_foreman_ansible/command_extensions/resolver.rb
83
85
  - lib/hammer_cli_foreman_ansible/host.rb
84
86
  - lib/hammer_cli_foreman_ansible/hostgroup.rb
85
87
  - lib/hammer_cli_foreman_ansible/i18n.rb
@@ -104,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
106
  - !ruby/object:Gem::Version
105
107
  version: '0'
106
108
  requirements: []
107
- rubyforge_project:
108
- rubygems_version: 2.6.14
109
+ rubygems_version: 3.1.2
109
110
  signing_key:
110
111
  specification_version: 4
111
112
  summary: Foreman Ansible plugin for Hammer CLI