guignol 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/lib/guignol/models/base.rb +1 -1
- data/lib/guignol/models/instance.rb +7 -2
- data/lib/guignol/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
guignol (0.3.
|
4
|
+
guignol (0.3.3)
|
5
5
|
activesupport
|
6
6
|
fog (~> 1.6.0)
|
7
7
|
parallel (~> 0.5.14)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
net-ssh (2.6.0)
|
40
40
|
jruby-pageant (>= 1.1.1)
|
41
41
|
nokogiri (1.5.5)
|
42
|
-
parallel (0.5.
|
42
|
+
parallel (0.5.19)
|
43
43
|
pry (0.9.10)
|
44
44
|
coderay (~> 1.0.5)
|
45
45
|
method_source (~> 0.8)
|
data/lib/guignol/models/base.rb
CHANGED
@@ -109,8 +109,13 @@ module Guignol::Models
|
|
109
109
|
|
110
110
|
def update_dns
|
111
111
|
return unless options[:domain]
|
112
|
-
|
113
|
-
log "server
|
112
|
+
unless subject && %w(pending running).include?(subject.state)
|
113
|
+
log "server is #{subject ? subject.state : 'nil'}, not updating DNS"
|
114
|
+
return
|
115
|
+
end
|
116
|
+
|
117
|
+
unless subject.dns_name
|
118
|
+
log "server has no public DNS, not updating DNS"
|
114
119
|
return
|
115
120
|
end
|
116
121
|
log "updating DNS"
|
data/lib/guignol/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guignol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
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: 2012-10-
|
12
|
+
date: 2012-10-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -232,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
segments:
|
234
234
|
- 0
|
235
|
-
hash: -
|
235
|
+
hash: -3247925171608667850
|
236
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
237
|
none: false
|
238
238
|
requirements:
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
version: 1.3.6
|
242
242
|
requirements: []
|
243
243
|
rubyforge_project:
|
244
|
-
rubygems_version: 1.8.
|
244
|
+
rubygems_version: 1.8.24
|
245
245
|
signing_key:
|
246
246
|
specification_version: 3
|
247
247
|
summary: Manipulate Amazon EC2 instances
|