ansible_tower_client 0.11.0 → 0.12.0
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 +4 -4
- data/CHANGELOG.md +12 -1
- data/lib/ansible_tower_client.rb +0 -1
- data/lib/ansible_tower_client/base_models/job.rb +2 -2
- data/lib/ansible_tower_client/collection.rb +3 -2
- data/lib/ansible_tower_client/version.rb +1 -1
- metadata +2 -3
- data/lib/ansible_tower_client/base_models/job_play.rb +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27500b81c51b6bf04517276c0922c604f7d7fddb
|
|
4
|
+
data.tar.gz: e8085853e837e4b7430afad6b04a73d99f2f86e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b50801dc9e1431a65ad98f11ba1d84e279bac0abf0b422f670d5530083f549d3caf132cd39df0393a164f6c400ef3c8d77ece09d5754b1cd2a7aea7e54757281
|
|
7
|
+
data.tar.gz: 7bfd7199b495150aea028feaa2cba6b48255e7af7b353957730550b111b7a6e28d4af2f314d5c45dd377ceabd1bc5176bd06b46e65863293c48fd83a00ad3fb6
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.12.0] - 2017-04-17
|
|
9
|
+
### Added
|
|
10
|
+
- Add Job#job_events [(#85)](https://github.com/ansible/ansible_tower_client_ruby/pull/85)
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Allow collection enumerator to be enumerated multiple times [(#86)](https://github.com/ansible/ansible_tower_client_ruby/pull/86)
|
|
14
|
+
|
|
15
|
+
### Removed
|
|
16
|
+
- Add Job#job_plays [(#85)](https://github.com/ansible/ansible_tower_client_ruby/pull/85)
|
|
17
|
+
|
|
8
18
|
## [0.11.0] - 2017-04-10
|
|
9
19
|
### Added
|
|
10
20
|
- Add ProjectUpdate and expose Project#update [(#82)](https://github.com/ansible/ansible_tower_client_ruby/pull/82)
|
|
@@ -44,7 +54,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
44
54
|
### Fixed
|
|
45
55
|
- Adjusted project_spec to test on a Project [(#63)](https://github.com/ansible/ansible_tower_client_ruby/pull/63)
|
|
46
56
|
|
|
47
|
-
[Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.
|
|
57
|
+
[Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.12.0...master
|
|
58
|
+
[0.12.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.11.0...v0.12.0
|
|
48
59
|
[0.11.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.10.0...v0.11.0
|
|
49
60
|
[0.10.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.9.0...v0.10.0
|
|
50
61
|
[0.9.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.8.0...v0.9.0
|
data/lib/ansible_tower_client.rb
CHANGED
|
@@ -21,7 +21,6 @@ require "ansible_tower_client/base_models/inventory_source"
|
|
|
21
21
|
require "ansible_tower_client/base_models/inventory_update"
|
|
22
22
|
require "ansible_tower_client/base_models/job"
|
|
23
23
|
require "ansible_tower_client/base_models/job_event"
|
|
24
|
-
require "ansible_tower_client/base_models/job_play"
|
|
25
24
|
require "ansible_tower_client/base_models/job_template"
|
|
26
25
|
require "ansible_tower_client/base_models/organization"
|
|
27
26
|
require "ansible_tower_client/base_models/project"
|
|
@@ -4,8 +4,8 @@ module AnsibleTowerClient
|
|
|
4
4
|
extra_vars.empty? ? {} : hashify(:extra_vars)
|
|
5
5
|
end
|
|
6
6
|
|
|
7
|
-
def
|
|
8
|
-
Collection.new(api, api.
|
|
7
|
+
def job_events(options = nil)
|
|
8
|
+
Collection.new(api, api.job_event_class).find_all_by_url(related["job_events"], options)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def stdout(format = 'txt')
|
|
@@ -16,10 +16,11 @@ module AnsibleTowerClient
|
|
|
16
16
|
Enumerator.new do |yielder|
|
|
17
17
|
@collection = []
|
|
18
18
|
next_page = url
|
|
19
|
+
options = get_options
|
|
19
20
|
|
|
20
21
|
loop do
|
|
21
|
-
next_page = fetch_more_results(next_page,
|
|
22
|
-
|
|
22
|
+
next_page = fetch_more_results(next_page, options) if @collection.empty?
|
|
23
|
+
options = nil
|
|
23
24
|
raise StopIteration if @collection.empty?
|
|
24
25
|
yielder.yield(@collection.shift)
|
|
25
26
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ansible_tower_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brandon Dunne
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-04-
|
|
12
|
+
date: 2017-04-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -157,7 +157,6 @@ files:
|
|
|
157
157
|
- lib/ansible_tower_client/base_models/inventory_update.rb
|
|
158
158
|
- lib/ansible_tower_client/base_models/job.rb
|
|
159
159
|
- lib/ansible_tower_client/base_models/job_event.rb
|
|
160
|
-
- lib/ansible_tower_client/base_models/job_play.rb
|
|
161
160
|
- lib/ansible_tower_client/base_models/job_template.rb
|
|
162
161
|
- lib/ansible_tower_client/base_models/organization.rb
|
|
163
162
|
- lib/ansible_tower_client/base_models/project.rb
|