cloudkick 0.2.12 → 0.2.13

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.12
1
+ 0.2.13
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cloudkick}
8
- s.version = "0.2.12"
8
+ s.version = "0.2.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cloudkick"]
12
- s.date = %q{2010-04-24}
12
+ s.date = %q{2010-04-26}
13
13
  s.default_executable = %q{cloudkick}
14
14
  s.description = %q{Ruby interface to the Cloudkick API}
15
15
  s.email = %q{support@cloudkick.com}
@@ -33,7 +33,7 @@ module Cloudkick::Command
33
33
  group.command 'help', 'show this usage'
34
34
  group.space
35
35
  group.command 'pssh --query <query> ' \
36
- '--command <command>' \
36
+ '<command> ' \
37
37
  '[--username <username>] ',
38
38
  'parallel ssh your nodes'
39
39
  end
@@ -3,15 +3,15 @@ require 'tempfile'
3
3
  module Cloudkick::Command
4
4
  class Pssh < Base
5
5
  def index
6
- unless args.size == 4 or args.size == 6
6
+ unless args.size % 2 == 1 and args.size <= 5
7
7
  raise CommandFailed, 'usage: cloudkick pssh --query <query> ' \
8
- '--username <username> ' \
9
- '--command <command>'
8
+ '<command> ' \
9
+ '[--username <username>]'
10
10
  end
11
11
 
12
12
  query = extract_option('--query')
13
13
  username = extract_option('--username')
14
- command = extract_option('--command')
14
+ command = args.last.strip.downcase rescue nil
15
15
 
16
16
  file = Tempfile.new('ck')
17
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudkick
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-04-24 00:00:00 -07:00
12
+ date: 2010-04-26 00:00:00 -07:00
13
13
  default_executable: cloudkick
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency