cloudstack-cli 0.1.4 → 0.1.5

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudstack-cli (0.1.3)
4
+ cloudstack-cli (0.1.4)
5
5
  net-ssh (~> 2.6.7)
6
6
  thor (~> 0.18.1)
7
7
 
@@ -20,6 +20,7 @@ module CloudstackCli
20
20
  end
21
21
 
22
22
  def find_project(project_name = options[:project])
23
+ return nil unless project_name
23
24
  unless project = client.get_project(project_name)
24
25
  say "Project '#{options[:project]}' not found", :red
25
26
  exit 1
@@ -43,7 +43,7 @@ class Server < CloudstackCli::Base
43
43
  desc: "Port Forwarding Rules [public_ip]:port ..."
44
44
  option :interactive, type: :boolean
45
45
  def create(name)
46
- if project = @cs.get_project(project)
46
+ if project = find_project
47
47
  project_id = project["id"]
48
48
  end
49
49
  server = client.get_server(name, project_id)
@@ -1,3 +1,3 @@
1
1
  module CloudstackCli
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
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-06 00:00:00.000000000 Z
12
+ date: 2013-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc