moob 0.3.2 → 0.3.3

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.
Files changed (3) hide show
  1. data/bin/moob +3 -1
  2. data/lib/moob.rb +1 -1
  3. metadata +3 -3
data/bin/moob CHANGED
@@ -58,7 +58,7 @@ OptionParser.new do |opts|
58
58
  end
59
59
 
60
60
  opts.on '-m', '--machines a,b,c', Array,
61
- 'Comma-separated list of LOM hostnames' do |m|
61
+ 'Comma-separated list of LOM hostnames (or - to read from stdin)' do |m|
62
62
  options[:machines] = m
63
63
  end
64
64
 
@@ -70,6 +70,8 @@ end.parse!
70
70
  if options[:machines].empty?
71
71
  $stderr.puts 'No LOMs selected.'
72
72
  exit 1
73
+ elsif options[:machines] == %w[-]
74
+ options[:machines] = $stdin.read.split
73
75
  end
74
76
 
75
77
  begin
@@ -1,5 +1,5 @@
1
1
  module Moob
2
- VERSION = [0,3,2]
2
+ VERSION = [0,3,3]
3
3
 
4
4
  class ResponseError < Exception
5
5
  def initialize response
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pierre Carrier
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-03-12 00:00:00 +01:00
17
+ date: 2012-03-15 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency