guignol 0.3.2 → 0.3.3

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guignol (0.3.2)
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.18)
42
+ parallel (0.5.19)
43
43
  pry (0.9.10)
44
44
  coderay (~> 1.0.5)
45
45
  method_source (~> 0.8)
@@ -56,7 +56,7 @@ module Guignol::Models
56
56
  end
57
57
 
58
58
 
59
- Interval = 200e-3
59
+ Interval = 1.0
60
60
  Timeout = 300
61
61
 
62
62
 
@@ -109,8 +109,13 @@ module Guignol::Models
109
109
 
110
110
  def update_dns
111
111
  return unless options[:domain]
112
- if subject.nil? || subject.state != 'running'
113
- log "server not running, not updating DNS"
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"
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Guignol
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
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.2
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-05 00:00:00.000000000 Z
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: -2537410862368428739
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.23
244
+ rubygems_version: 1.8.24
245
245
  signing_key:
246
246
  specification_version: 3
247
247
  summary: Manipulate Amazon EC2 instances