ansible-powerplay 1.0.8 → 1.1.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
  SHA1:
3
- metadata.gz: fcbca3ad2a17db6631c7994c10159c5a64926776
4
- data.tar.gz: 642d4d3ccd22d8541bf701040055fee8ea5c6bab
3
+ metadata.gz: 0418dd150878ba2b36901fee9daaae5b16fbefb6
4
+ data.tar.gz: 5e193e41177a494105c1855a42795043b2f37f70
5
5
  SHA512:
6
- metadata.gz: 65eb7e156a9a8d47b76047b301c10e69763431998ccaac028e355da88903a78d0fcc4bd621af10485692cc561cdb7247075d5990aaeb5bb5ba24b2a7a215a7cf
7
- data.tar.gz: 654602828ad67705ff3fb7601a8965f587ed48eccb666b2fbfaf544385954cafe0abc8f42eec091ead88afee26175551f2fbc6038752f3f77acda0bcc888dd7f
6
+ metadata.gz: 4d625d89cb73f235dc380eba57780ae4c7a265b1eef83344fa331108439e7c44a416f0438e8284234b1f2d4a43597520b9e40752544b5bb17945bf291ac2fd71
7
+ data.tar.gz: e0bad3f05079770e834ddadb5e910918e36a8d6b1a90d7c83b276eb59ed5eec610a458d2bd43e59219641238c9aad3c1f247e172fe194bac0f666527811f2a0b
data/.semver CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
- :minor: 0
4
- :patch: 8
3
+ :minor: 1
4
+ :patch: 0
5
5
  :special: ''
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ gem 'colorize', '~> 0'
6
6
  gem 'semver', '~> 1'
7
7
  gem 'queue_ding', '~> 0'
8
8
  gem 'concurrent-ruby', '~> 1', require: 'concurrent'
9
+ gem 'awesome_print', '~> 1'
9
10
 
10
11
  group :development do
11
12
  gem 'rspec', '~> 2'
data/Gemfile.lock CHANGED
@@ -3,6 +3,7 @@ GEM
3
3
  specs:
4
4
  addressable (2.4.0)
5
5
  aquarium (0.5.1)
6
+ awesome_print (1.7.0)
6
7
  binding_of_caller (0.7.2)
7
8
  debug_inspector (>= 0.0.1)
8
9
  builder (3.2.2)
@@ -17,15 +18,15 @@ GEM
17
18
  docile (1.1.5)
18
19
  faraday (0.9.2)
19
20
  multipart-post (>= 1.2, < 3)
20
- ffi (1.9.13)
21
+ ffi (1.9.14)
21
22
  formatador (0.2.5)
22
23
  git (1.3.0)
23
- github_api (0.14.3)
24
+ github_api (0.14.5)
24
25
  addressable (~> 2.4.0)
25
26
  descendants_tracker (~> 0.0.4)
26
27
  faraday (~> 0.8, < 0.10)
27
28
  hashie (>= 3.4)
28
- oauth2 (~> 1.0.0)
29
+ oauth2 (~> 1.0)
29
30
  guard (2.14.0)
30
31
  formatador (>= 0.2.4)
31
32
  listen (>= 2.7, < 4.0)
@@ -66,17 +67,17 @@ GEM
66
67
  nokogiri (1.6.8)
67
68
  mini_portile2 (~> 2.1.0)
68
69
  pkg-config (~> 1.1.7)
69
- notiffany (0.1.0)
70
+ notiffany (0.1.1)
70
71
  nenv (~> 0.1)
71
72
  shellany (~> 0.0)
72
- oauth2 (1.0.0)
73
+ oauth2 (1.2.0)
73
74
  faraday (>= 0.8, < 0.10)
74
75
  jwt (~> 1.0)
75
76
  multi_json (~> 1.3)
76
77
  multi_xml (~> 0.5)
77
- rack (~> 1.2)
78
+ rack (>= 1.2, < 3)
78
79
  pkg-config (1.1.7)
79
- pry (0.10.3)
80
+ pry (0.10.4)
80
81
  coderay (~> 1.1.0)
81
82
  method_source (~> 0.8.1)
82
83
  slop (~> 3.4)
@@ -98,7 +99,7 @@ GEM
98
99
  queue_ding (0.1.2)
99
100
  aquarium (~> 0)
100
101
  semver (~> 1)
101
- rack (1.6.4)
102
+ rack (2.0.1)
102
103
  rake (11.2.2)
103
104
  rb-fsevent (0.9.7)
104
105
  rb-inotify (0.9.7)
@@ -113,7 +114,7 @@ GEM
113
114
  rspec-expectations (2.99.2)
114
115
  diff-lcs (>= 1.1.3, < 2.0)
115
116
  rspec-mocks (2.99.4)
116
- ruby_dep (1.3.1)
117
+ ruby_dep (1.4.0)
117
118
  semver (1.0.1)
118
119
  shellany (0.0.1)
119
120
  simplecov (0.12.0)
@@ -126,13 +127,14 @@ GEM
126
127
  tins (~> 1.0)
127
128
  thor (0.19.1)
128
129
  thread_safe (0.3.5)
129
- tins (1.10.2)
130
- yard (0.9.0)
130
+ tins (1.12.0)
131
+ yard (0.9.5)
131
132
 
132
133
  PLATFORMS
133
134
  ruby
134
135
 
135
136
  DEPENDENCIES
137
+ awesome_print (~> 1)
136
138
  bundler (~> 1)
137
139
  colorize (~> 0)
138
140
  concurrent-ruby (~> 1)
data/README.org CHANGED
@@ -51,6 +51,69 @@
51
51
 
52
52
  Please see [[New STDOUT capturing with 1.0.x][New STDOUT capturing with 1.0.x]]
53
53
 
54
+ **** Group Sequence Numers
55
+ We now allow groups to have sequence numbers, as
56
+ of 1.1. Basically, if you specify a sequence,
57
+ the variable you designate will be assigned
58
+ a value in each of the sequence, with the
59
+ group re-excuted. for example:
60
+
61
+ #+begin_src ruby
62
+ group :first, "async group with sequencing",
63
+ seq: { iter: [1, 5, 9, :dodo] } do
64
+ book :nat, "nat.yml"
65
+ book :dat, "dat.yml"
66
+ book :rat, "rat.yml"
67
+ end
68
+ #+end_src
69
+
70
+ as you can see (in the development.play sample)
71
+ the variable "iter" will be successively assigned
72
+ the element in the [] array, with the underlying
73
+ playbooks called. The is the function equivalent
74
+ of the following:
75
+
76
+ #+begin_src ruby
77
+ group :first, "async group without sequencing" do
78
+ configuration do
79
+ iter 1
80
+ end
81
+ book :nat, "nat.yml"
82
+ book :dat, "dat.yml"
83
+ book :rat, "rat.yml"
84
+ end
85
+
86
+ group :first, "async group without sequencing" do
87
+ configuration do
88
+ iter 5
89
+ end
90
+ book :nat, "nat.yml"
91
+ book :dat, "dat.yml"
92
+ book :rat, "rat.yml"
93
+ end
94
+
95
+ group :first, "async group without sequencing" do
96
+ configuration do
97
+ iter 9
98
+ end
99
+ book :nat, "nat.yml"
100
+ book :dat, "dat.yml"
101
+ book :rat, "rat.yml"
102
+ end
103
+
104
+ group :first, "async group without sequencing" do
105
+ configuration do
106
+ iter :dodo
107
+ end
108
+ book :nat, "nat.yml"
109
+ book :dat, "dat.yml"
110
+ book :rat, "rat.yml"
111
+ end
112
+ #+end_src
113
+
114
+ As you can see, the new sequencing can be quite
115
+ succinct.
116
+
54
117
  ** Features and Cavets
55
118
  *** Integration with TMUX
56
119
  When running multiple Ansible Playbooks
data/RELEASE_NOTES.org CHANGED
@@ -9,6 +9,7 @@
9
9
  ** Release Notes
10
10
  | Release | Feature / Bug | Description | Date |
11
11
  |---------+----------------------------------------+-----------------------------------------------------------------------------------------------+------------|
12
+ | v1.1.0 | Group sequencing | Allows you to run a group multiple times with sequence numbers. | 2016-08-09 |
12
13
  | v1.0.8 | --ttys | List specific terminals you'd like the output to go to. | 2016-07-07 |
13
14
  | v1.0.7 | Verosity Switch --apverbose=n (-Vn) | Pass to ansible-powerplay -v, -vv, etc. | |
14
15
  | v1.0.6 | Ansible Verbosity | Pass to Ansi | |
@@ -46,6 +47,7 @@
46
47
  | | Core | Core process flow needs to be redone. |
47
48
  | 2016-03-03 | Status dump out of order | Currently a bit out of order due to the fact that the output are being run in different threads and so the text is being printed nondeterministically. |
48
49
  | 2016-02-20 | Platforms other than Linux | We need to test on Mac OSX and Windows. Should work fine on Macs. I do not plan to support Windows in general, but may accept pull requests to that end. |
50
+ | | | |
49
51
 
50
52
  ** Wish List
51
53
  Well, we can always wish upon a star... but it will take
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: ansible-powerplay 1.0.8 ruby lib
5
+ # stub: ansible-powerplay 1.1.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "ansible-powerplay"
9
- s.version = "1.0.8"
9
+ s.version = "1.1.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Fred Mitchell"]
14
- s.date = "2016-07-07"
14
+ s.date = "2016-08-09"
15
15
  s.description = "Ansible Powerplay, by way of its DSL, allows you to\n specify your Ansible playbooks and their vars, and common\n vars to all, so that you can run your\n indeoendent playbooks in full parallel."
16
16
  s.email = "fred.mitchell@gmx.de"
17
17
  s.executables = ["powerplay", "pp"]
@@ -64,6 +64,7 @@ Gem::Specification.new do |s|
64
64
  s.add_runtime_dependency(%q<semver>, ["~> 1"])
65
65
  s.add_runtime_dependency(%q<queue_ding>, ["~> 0"])
66
66
  s.add_runtime_dependency(%q<concurrent-ruby>, ["~> 1"])
67
+ s.add_runtime_dependency(%q<awesome_print>, ["~> 1"])
67
68
  s.add_development_dependency(%q<rspec>, ["~> 2"])
68
69
  s.add_development_dependency(%q<yard>, ["~> 0"])
69
70
  s.add_development_dependency(%q<rdoc>, ["~> 3"])
@@ -85,6 +86,7 @@ Gem::Specification.new do |s|
85
86
  s.add_dependency(%q<semver>, ["~> 1"])
86
87
  s.add_dependency(%q<queue_ding>, ["~> 0"])
87
88
  s.add_dependency(%q<concurrent-ruby>, ["~> 1"])
89
+ s.add_dependency(%q<awesome_print>, ["~> 1"])
88
90
  s.add_dependency(%q<rspec>, ["~> 2"])
89
91
  s.add_dependency(%q<yard>, ["~> 0"])
90
92
  s.add_dependency(%q<rdoc>, ["~> 3"])
@@ -107,6 +109,7 @@ Gem::Specification.new do |s|
107
109
  s.add_dependency(%q<semver>, ["~> 1"])
108
110
  s.add_dependency(%q<queue_ding>, ["~> 0"])
109
111
  s.add_dependency(%q<concurrent-ruby>, ["~> 1"])
112
+ s.add_dependency(%q<awesome_print>, ["~> 1"])
110
113
  s.add_dependency(%q<rspec>, ["~> 2"])
111
114
  s.add_dependency(%q<yard>, ["~> 0"])
112
115
  s.add_dependency(%q<rdoc>, ["~> 3"])
@@ -5,6 +5,7 @@ require 'open3'
5
5
  require 'thread'
6
6
  require 'colorize'
7
7
  require 'queue_ding'
8
+ require 'awesome_print'
8
9
 
9
10
  def s_version
10
11
  SemVer.find.format "v%M.%m.%p%s"
@@ -120,9 +120,21 @@ module Powerplay
120
120
  # The entries here may either be books or groups.
121
121
  attr_reader :exec, :parent
122
122
 
123
- def group name, desc = nil, plan = :async, &block
124
- DslGroup.new(name, desc, plan, self, &block)
125
- _enqueue DslBook.new(:noop, nil, plan: @exec) unless @exec == :async or _sneak.type == :sync
123
+ def group name, desc = nil, plan = :async, seq: nil, &block
124
+ if seq.nil?
125
+ DslGroup.new(name, desc, plan, self, &block)
126
+ _enqueue DslBook.new(:noop, nil, plan: @exec) unless @exec == :async or _sneak.type == :sync
127
+ else
128
+ seq.each do |var, list|
129
+ list.each do |value|
130
+ _bump
131
+ _config[var] = [value]
132
+ DslGroup.new(name, desc, plan, self, &block)
133
+ _enqueue DslBook.new(:noop, nil, plan: @exec) unless @exec == :async or _sneak.type == :sync
134
+ _dip
135
+ end
136
+ end
137
+ end
126
138
  end
127
139
 
128
140
  def book(type, yaml, desc = nil, plan: @exec, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible-powerplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Mitchell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-07 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: awesome_print
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rspec
99
113
  requirement: !ruby/object:Gem::Requirement