ansible-powerplay 1.0.5 → 1.0.7

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: 5aee1a729d7a779983625e48d25bf6454cd57dad
4
- data.tar.gz: 4b74e360961e7aabfde0b5909e87a8f5f71237fc
3
+ metadata.gz: 53c2edf34a642e1f919c710fcee362a9c03d65cc
4
+ data.tar.gz: a29c4616265896cd1b677e798c9f988d2c302b8b
5
5
  SHA512:
6
- metadata.gz: fa683eaef1e570992eb8fc3e977988c11d7804970ffdede314fa3dfe6224d4ad44749d775e1edf6955d638408156f53a568f6c60ff3044cda4271242c2e6b772
7
- data.tar.gz: 148a12be1ef3a5270c894a24f5699ee11b8be9e364094f1b7c14e459e50982d7e561c0a50922bfa18e1cf1563a8766250ab1554b70cd6cb158b4f06d310dfca9
6
+ metadata.gz: 778c59455468f67cc12047ff6af0e4dfc5132af374132474bb16decc65343922257f57da8d9a753cdb93941f11bff37b6a8ff0a8d2784f0b21001a142ef08019
7
+ data.tar.gz: a7f27850c6a195b24d365c8a5e48e19af99d995f4d9e3f33d46ecf186a258feacaa392aaa3f03e2308ee22cfe8927feb0de4d2880c40a760117ca8360ca3ad68
data/.semver CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 0
4
- :patch: 5
4
+ :patch: 7
5
5
  :special: ''
data/RELEASE_NOTES.org CHANGED
@@ -9,6 +9,9 @@
9
9
  ** Release Notes
10
10
  | Release | Feature / Bug | Description | Date |
11
11
  |---------+----------------------------------------+-----------------------------------------------------------------------------------------------+------------|
12
+ | v1.0.7 | Verosity Switch --apverbose=n (-Vn) | Pass to ansible-powerplay -v, -vv, etc. | |
13
+ | v1.0.6 | Ansible Verbosity | Pass to Ansi | |
14
+ | v1.0.5 | Many bug fixes | Critical bugs all fixed. | |
12
15
  | v1.0.3 | DSL book | changed the named paramer back to the normal one. | 2061-06-08 |
13
16
  | v1.0.0 | version | Prints version | 2061-06-04 |
14
17
  | | powerplay / pp shorthand command | Play task defaults if you use the shorthand 'pp' on the commandline | 2061-06-04 |
@@ -2,11 +2,11 @@
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.5 ruby lib
5
+ # stub: ansible-powerplay 1.0.7 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "ansible-powerplay"
9
- s.version = "1.0.5"
9
+ s.version = "1.0.7"
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"]
@@ -6,7 +6,7 @@ include Powerplay::DSL
6
6
  module Powerplay
7
7
  module Cli
8
8
  class Main < Thor
9
- class_option :verbose, type: :numeric, banner: '[1|2|3]', aliases: '-v', default: 0
9
+ class_option :verbose, type: :numeric, banner: '[1|2|3|4]', aliases: '-v', default: 0
10
10
 
11
11
  desc 'play [script]', 'Run the powerplay script.'
12
12
  long_desc <<-LONGDESC
@@ -35,6 +35,8 @@ module Powerplay
35
35
  option :sktags, type: :array, aliases: ['--skip-tags', '-T'],
36
36
  banner: %(<TAG1>[ TAG2 TAG3...]),
37
37
  desc: "Ansible tags to skip - mutually exclusive with --tags"
38
+ option :apverbose, type: :numeric, banner: '[1|2|3|4]', aliases: '-V', default: 0,
39
+ desc: "Pass to ansible-playbook -v, -vv, etc. verbosity flags"
38
40
  def play(script = 'stack.play')
39
41
  DSL::_global[:options] = massage options
40
42
  puts "script %s " % [script] if DSL::_global[:options][:verbose] >= 1
@@ -84,6 +84,9 @@ module Powerplay
84
84
  tags = Play::clopts[:tags]
85
85
  sktags = Play::clopts[:sktags]
86
86
  tmuxout = Play::clopts[:tmux]
87
+ apverb = Play::clopts[:apverbose]
88
+
89
+ verb = (apverb == 0) ? '' : ('-' + ('v' * apverb))
87
90
  tagstr = ''
88
91
  if tags and sktags
89
92
  puts "Cannot use both --tags (#{tags}) and --skip-tags (#{sktags})"
@@ -104,7 +107,7 @@ module Powerplay
104
107
  end
105
108
  xxv = [extra[book.type], extra[:all]].compact.join(' ')
106
109
  redirect = (tmuxout.nil?) ? '' : " > #{tty}"
107
- apcmd = %|#{PLAYBOOK} #{OPTS} #{inv} #{book.config[:playbook_directory].first}/#{book.yaml} #{tagstr} --extra-vars "#{book.aparams} #{xxv}" #{redirect}|
110
+ apcmd = %|#{PLAYBOOK} #{OPTS} #{inv} #{book.config[:playbook_directory].first}/#{book.yaml} #{tagstr} --extra-vars "#{book.aparams} #{xxv}" #{verb} #{redirect}|
108
111
  unless DSL::_verbosity < 1
109
112
  puts "==============================".green
110
113
  puts "Running #{book.plan} book ".light_yellow +
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible-powerplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Mitchell