stem 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/stem/family.rb +3 -2
  2. metadata +4 -50
data/lib/stem/family.rb CHANGED
@@ -54,7 +54,7 @@ module Stem
54
54
  wait_for_stopped instance_id, log
55
55
 
56
56
  timestamp = Time.now.utc.iso8601
57
- image_id = Stem::Image.create("#{family}-#{timestamp}",
57
+ image_id = Stem::Image.create("#{family}-#{timestamp.gsub(':', '_')}",
58
58
  instance_id,
59
59
  {
60
60
  :created => timestamp,
@@ -66,8 +66,9 @@ module Stem
66
66
 
67
67
  wait_for_available(image_id, log)
68
68
 
69
- log "Terminating #{instance_id} now that the image is captured"
69
+ log.call "Terminating #{instance_id} now that the image is captured"
70
70
  Stem::Instance::destroy(instance_id)
71
+ image_id
71
72
  end
72
73
 
73
74
  def image_already_built?(family, config, userdata)
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stem
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 5
9
- - 4
10
- version: 0.5.4
4
+ prerelease:
5
+ version: 0.5.5
11
6
  platform: ruby
12
7
  authors:
13
8
  - Peter van Hardenberg
@@ -17,7 +12,7 @@ autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
14
 
20
- date: 2011-03-03 00:00:00 -08:00
15
+ date: 2011-03-06 00:00:00 -08:00
21
16
  default_executable:
22
17
  dependencies:
23
18
  - !ruby/object:Gem::Dependency
@@ -28,11 +23,6 @@ dependencies:
28
23
  requirements:
29
24
  - - ~>
30
25
  - !ruby/object:Gem::Version
31
- hash: 1
32
- segments:
33
- - 1
34
- - 7
35
- - 5
36
26
  version: 1.7.5
37
27
  type: :runtime
38
28
  version_requirements: *id001
@@ -44,11 +34,6 @@ dependencies:
44
34
  requirements:
45
35
  - - ~>
46
36
  - !ruby/object:Gem::Version
47
- hash: 27
48
- segments:
49
- - 2
50
- - 5
51
- - 0
52
37
  version: 2.5.0
53
38
  type: :development
54
39
  version_requirements: *id002
@@ -60,11 +45,6 @@ dependencies:
60
45
  requirements:
61
46
  - - ~>
62
47
  - !ruby/object:Gem::Version
63
- hash: 27
64
- segments:
65
- - 2
66
- - 5
67
- - 0
68
48
  version: 2.5.0
69
49
  type: :development
70
50
  version_requirements: *id003
@@ -76,11 +56,6 @@ dependencies:
76
56
  requirements:
77
57
  - - ~>
78
58
  - !ruby/object:Gem::Version
79
- hash: 27
80
- segments:
81
- - 2
82
- - 5
83
- - 0
84
59
  version: 2.5.0
85
60
  type: :development
86
61
  version_requirements: *id004
@@ -92,11 +67,6 @@ dependencies:
92
67
  requirements:
93
68
  - - ~>
94
69
  - !ruby/object:Gem::Version
95
- hash: 27
96
- segments:
97
- - 2
98
- - 5
99
- - 0
100
70
  version: 2.5.0
101
71
  type: :development
102
72
  version_requirements: *id005
@@ -108,11 +78,6 @@ dependencies:
108
78
  requirements:
109
79
  - - ~>
110
80
  - !ruby/object:Gem::Version
111
- hash: 15
112
- segments:
113
- - 1
114
- - 6
115
- - 0
116
81
  version: 1.6.0
117
82
  type: :development
118
83
  version_requirements: *id006
@@ -124,11 +89,6 @@ dependencies:
124
89
  requirements:
125
90
  - - ~>
126
91
  - !ruby/object:Gem::Version
127
- hash: 11
128
- segments:
129
- - 1
130
- - 6
131
- - 2
132
92
  version: 1.6.2
133
93
  type: :development
134
94
  version_requirements: *id007
@@ -173,23 +133,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
133
  requirements:
174
134
  - - ">="
175
135
  - !ruby/object:Gem::Version
176
- hash: 3
177
- segments:
178
- - 0
179
136
  version: "0"
180
137
  required_rubygems_version: !ruby/object:Gem::Requirement
181
138
  none: false
182
139
  requirements:
183
140
  - - ">="
184
141
  - !ruby/object:Gem::Version
185
- hash: 3
186
- segments:
187
- - 0
188
142
  version: "0"
189
143
  requirements: []
190
144
 
191
145
  rubyforge_project:
192
- rubygems_version: 1.3.7
146
+ rubygems_version: 1.5.2
193
147
  signing_key:
194
148
  specification_version: 2
195
149
  summary: an EC2 instance management library designed to get out of your way and give you instances