Module: PoolParty::Verification::InstanceMethods
- Defined in:
- lib/poolparty/verification/verify.rb
Instance Method Summary collapse
Instance Method Details
#passing? ⇒ Boolean
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/poolparty/verification/verify.rb', line 24 def passing? reset! vputs "Starting cloud verification" verifiers.each do |v| ip = nodes(:status => "running").first.ip rescue "127.0.0.1" v.host = ip vputs " checking #{v} on #{ip}" raise "Verification failed at #{v.class}" unless v.passing? end return true end |
#verifiers ⇒ Object
14 15 16 |
# File 'lib/poolparty/verification/verify.rb', line 14 def verifiers @verifiers ||= [] end |
#verify(&block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/poolparty/verification/verify.rb', line 17 def verify(&block) v = Verify.new(&block) # ugly, todo fix ip = nodes(:status => "running").first.ip rescue "127.0.0.1" v.host = ip v.verifiers.each {|v| verifiers << v} end |