ironfan 4.8.6 → 4.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/ironfan.gemspec +2 -2
- data/lib/ironfan/provider/ec2/machine.rb +10 -2
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.8.
|
1
|
+
4.8.7
|
data/ironfan.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ironfan"
|
8
|
-
s.version = "4.8.
|
8
|
+
s.version = "4.8.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Infochimps"]
|
12
|
-
s.date = "2013-03-
|
12
|
+
s.date = "2013-03-05"
|
13
13
|
s.description = "Ironfan allows you to orchestrate not just systems but clusters of machines. It includes a powerful layer on top of knife and a collection of cloud cookbooks."
|
14
14
|
s.email = "coders@infochimps.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -52,21 +52,29 @@ module Ironfan
|
|
52
52
|
def created?
|
53
53
|
not ['terminated', 'shutting-down'].include? state
|
54
54
|
end
|
55
|
+
def pending?
|
56
|
+
state == "pending"
|
57
|
+
end
|
55
58
|
def running?
|
56
59
|
state == "running"
|
57
60
|
end
|
61
|
+
def stopping?
|
62
|
+
state == "stopping"
|
63
|
+
end
|
58
64
|
def stopped?
|
59
65
|
state == "stopped"
|
60
66
|
end
|
61
67
|
|
62
68
|
def start
|
69
|
+
machine = self
|
63
70
|
adaptee.start
|
64
|
-
adaptee.wait_for{
|
71
|
+
adaptee.wait_for{ machine.pending? or machine.running? }
|
65
72
|
end
|
66
73
|
|
67
74
|
def stop
|
75
|
+
machine = self
|
68
76
|
adaptee.stop
|
69
|
-
adaptee.wait_for{
|
77
|
+
adaptee.wait_for{ machine.stopping? or machine.stopped? }
|
70
78
|
end
|
71
79
|
|
72
80
|
def to_display(style,values={})
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ironfan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 4.8.
|
5
|
+
version: 4.8.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Infochimps
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2013-03-
|
13
|
+
date: 2013-03-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: chef
|
@@ -284,7 +284,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
284
284
|
requirements:
|
285
285
|
- - ">="
|
286
286
|
- !ruby/object:Gem::Version
|
287
|
-
hash: -
|
287
|
+
hash: -3865228418823474445
|
288
288
|
segments:
|
289
289
|
- 0
|
290
290
|
version: "0"
|