forj 0.0.10 → 0.0.11

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/lib/boot.rb +2 -3
  2. data/lib/compute.rb +7 -2
  3. metadata +6 -6
data/lib/boot.rb CHANGED
@@ -65,10 +65,9 @@ module Boot
65
65
  build_path = home + '/.hpcloud/maestro/build'
66
66
  Dir.chdir(build_path)
67
67
 
68
- command = './bin/build.sh '
69
- options = '--box-name ' + name
68
+ command = './bin/build.sh --box-name maestro --build-config box'
70
69
 
71
- Kernel.system(command + ' ' + options)
70
+ Kernel.system(command)
72
71
  Dir.chdir(current_dir)
73
72
 
74
73
  if test
data/lib/compute.rb CHANGED
@@ -65,8 +65,13 @@ module Compute
65
65
  end
66
66
 
67
67
  def delete_instance(maestro)
68
- maestro = Connection.compute.servers.all(:name => maestro)[0]
69
- Connection.compute.servers.get(maestro.id).destroy
68
+ result = Connection.compute.servers.all(:name => maestro)[0]
69
+ name = result.name
70
+ if name.include? maestro
71
+ Connection.compute.servers.get(result.id).destroy
72
+ else
73
+ puts '%s not found' % [maestro]
74
+ end
70
75
  end
71
76
 
72
77
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2014-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &11297980 !ruby/object:Gem::Requirement
16
+ requirement: &21936120 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.19.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *11297980
24
+ version_requirements: *21936120
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fog
27
- requirement: &11297520 !ruby/object:Gem::Requirement
27
+ requirement: &21935120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.22.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *11297520
35
+ version_requirements: *21935120
36
36
  description: forj command line
37
37
  email:
38
38
  - forj@forj.io
@@ -54,7 +54,7 @@ files:
54
54
  - lib/repositories.rb
55
55
  homepage: https://forj.io
56
56
  licenses:
57
- - APACHE
57
+ - Apache License, Version 2.0.
58
58
  post_install_message: Go to docs.forj.io for more information on how to use forj cli
59
59
  rdoc_options: []
60
60
  require_paths: