runpuppet 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/runpuppet +7 -2
  3. data/runpuppet.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.7
1
+ 0.5.8
data/bin/runpuppet CHANGED
@@ -14,16 +14,21 @@ Usage:
14
14
  runpuppet # runs forced puppetrun
15
15
  runpuppet --try # runs only if told by puppet_controller
16
16
  runpuppet --branch feature # run a non-default branch
17
+ runpuppet --facts # report facter facts to puppet_controller
17
18
  Options:
18
19
  BANNER
19
20
 
20
21
  opts.on("-h", "--help","Show this.") { puts opts; exit }
21
22
  opts.on('-v', '--version','Show Version'){ puts Runpuppet::VERSION; exit}
22
23
  opts.on('--try','Runs only if selected on puppet_controller'){ options[:try] = true }
24
+ opts.on('--facts','Report facts'){ options[:facts] = true }
23
25
  opts.on('--branch x', 'Run this branch') do |branch|
24
26
  options[:branch] = branch
25
27
  end
26
28
  end.parse!
27
29
 
28
-
29
- Runpuppet.run(options)
30
+ if options[:facts]
31
+ Runpuppet.report_facts
32
+ else
33
+ Runpuppet.run(options)
34
+ end
data/runpuppet.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{runpuppet}
8
- s.version = "0.5.7"
8
+ s.version = "0.5.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roman Heinrich"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runpuppet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 7
10
- version: 0.5.7
9
+ - 8
10
+ version: 0.5.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Heinrich