foreman_ansible_core 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: 248f0459cfdc3a7f98c0fea3ede91120a1c81b2d
4
- data.tar.gz: 87b41e00dfdfe240d6baefc5ab7b6c4cae7a6054
3
+ metadata.gz: f416c282ff17d92a2c756375ecd3332b6781a8c9
4
+ data.tar.gz: 07cb920eb62b34aa9d96683e81d0b7918262d77e
5
5
  SHA512:
6
- metadata.gz: e2e1a74f84b28a277fa0eb4c1f2f4ba1c841286ab44cafe65248a7d8022b1482747665ed71754fee1a07607a37c1f0cfff625fcceffe3137dfe54050690b84e5
7
- data.tar.gz: 33a0479840efbee0b96f3ce1d27c2dd01b3c40e8f9b0bf5f4f19f31741965b3f79bd47f006399e1d7ae0ae13c593c292caac128b54088af7e8e2d65caf2714a2
6
+ metadata.gz: 014b581ee8de8afcb3842f501ab72a950374cd536dc83f419c1d4c119d9a11156d84021136354b150e0df8e7b2b44cdbb6d3bf8024819c67a08ef0810688ab55
7
+ data.tar.gz: 88f4a747f66b93186c7a73ee91fdd8923b93fb246efd1e304d4a0e8bafa0636eabc1150ab61a4068a3437f30559aaca7e1a114e6af973fbd201edb9cb87c84b2
@@ -26,7 +26,7 @@ module ForemanAnsibleCore
26
26
  command = [{ 'JSON_INVENTORY_FILE' => inventory_file }]
27
27
  command << 'ansible-playbook'
28
28
  command.concat(['-i', json_inventory_script])
29
- if !@options[:verbosity_level].nil? && !@options[:verbosity_level].empty? && @options[:verbosity_level] > 0
29
+ if verbose?
30
30
  command.concat([setup_verbosity])
31
31
  end
32
32
  command.concat(['-T', @options[:timeout]]) unless @options[:timeout].nil?
@@ -117,5 +117,12 @@ module ForemanAnsibleCore
117
117
  end
118
118
  verbosity
119
119
  end
120
+
121
+ def verbose?
122
+ verbosity_level = @options[:verbosity_level]
123
+ !verbosity_level.nil? && !verbosity_level.empty? &&
124
+ verbosity_level.to_i > 0
125
+ end
126
+
120
127
  end
121
128
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanAnsibleCore
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.0
33
+ version: '0.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.0
40
+ version: '0.1'
41
41
  description: |
42
42
  Ansible integration with Foreman - core parts for dealing with Ansible concepts,
43
43
  usable by foreman_ansible or smart_proxy_ansible to delegate the execution.
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.4.5.1
78
+ rubygems_version: 2.4.8
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: 'Ansible integration with Foreman (theforeman.org): core bits'