knife-brightbox 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,16 +28,15 @@ class Chef
28
28
 
29
29
  def run
30
30
  @name_args.each do |instance_id|
31
-
32
31
  server = connection.servers.get(instance_id)
33
-
32
+ if server.nil?
33
+ ui.error("Server instance #{instance_id} not found. Aborting.")
34
+ exit 1
35
+ end
34
36
  msg("Instance ID", server.id.to_s)
35
- msg("Host ID", server.host_id)
36
37
  msg("Name", server.name)
37
38
  msg("Flavor", server.flavor.name)
38
39
  msg("Image", server.image.name)
39
- msg("Public DNS Name", server.addresses["public"][0])
40
- msg("Private IP Address", server.addresses["private"][0])
41
40
 
42
41
  puts "\n"
43
42
  confirm("Do you really want to delete this server")
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Brightbox
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-brightbox
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Rubio