cloudstack-cli 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,15 +26,12 @@ module CloudstackCli
26
26
  say "Example: https://my-cloudstack-server/client/api/", :yellow
27
27
  config[:url] = ask("URL:", :magenta)
28
28
  end
29
-
30
29
  unless options[:api_key]
31
30
  config[:api_key] = ask("API Key:", :magenta)
32
31
  end
33
-
34
32
  unless options[:secret_key]
35
33
  config[:secret_key] = ask("Secret Key:", :magenta)
36
34
  end
37
-
38
35
  if File.exists? file
39
36
  say "Warning: #{file} already exists.", :red
40
37
  exit unless yes?("Overwrite [y/N]", :red)
@@ -44,13 +41,12 @@ module CloudstackCli
44
41
 
45
42
  desc "command COMMAND [arg1=val1 arg2=val2...]", "run a custom api command"
46
43
  def command(command, *args)
47
- client = CloudstackCli::Helper.new(options[:config])
48
44
  params = {'command' => command}
49
45
  args.each do |arg|
50
46
  arg = arg.split('=')
51
47
  params[arg[0]] = arg[1]
52
48
  end
53
- puts JSON.pretty_generate(client.cs.send_request params)
49
+ puts JSON.pretty_generate(client.send_request params)
54
50
  end
55
51
 
56
52
  desc "zone SUBCOMMAND ...ARGS", "Manage zones"
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-07 00:00:00.000000000 Z
12
+ date: 2013-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc