Sha256: 6e2a503024e4bec3067e3c12227430c0f810006c7974170cff5d53e0842cd529

Contents?: true

Size: 891 Bytes

Versions: 28

Compression:

Stored size: 891 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__) + "/../lib")
require "poolparty"

require 'git-style-binary/command'

GitStyleBinary.command do
  banner <<-EOS
Usage: #{$0} #{all_options_string}

  Run the verifiers on your cloud 
EOS

  short_desc "Run the verifiers on your cloud"

  run do |command|    
    @loaded_clouds.each do |cld|
      
        begin
          if cld.verifiers.size > 0
            cld.passing?
            vputs "Cloud passed verification"
          else
            raise "Your cloud doesn't have any verifiers!"
            exit 2
          end
        rescue Exception => e
           cld.vputs <<-EOM
      
            Verification failed: #{e}"
              Please check your clouds.rb for any errors
      
            Exception: #{e.class}: #{e.message}\n\t#{e.backtrace.join("\n\t")}
      
            EOM
        end
      
    end    
  end
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
auser-poolparty-1.3.0 bin/cloud-verify
auser-poolparty-1.3.1 bin/cloud-verify
auser-poolparty-1.3.10 bin/cloud-verify
auser-poolparty-1.3.11 bin/cloud-verify
auser-poolparty-1.3.12 bin/cloud-verify
auser-poolparty-1.3.13 bin/cloud-verify
auser-poolparty-1.3.14 bin/cloud-verify
auser-poolparty-1.3.15 bin/cloud-verify
auser-poolparty-1.3.16 bin/cloud-verify
auser-poolparty-1.3.17 bin/cloud-verify
auser-poolparty-1.3.2 bin/cloud-verify
auser-poolparty-1.3.3 bin/cloud-verify
auser-poolparty-1.3.4 bin/cloud-verify
auser-poolparty-1.3.5 bin/cloud-verify
auser-poolparty-1.3.6 bin/cloud-verify
auser-poolparty-1.3.7 bin/cloud-verify
auser-poolparty-1.3.8 bin/cloud-verify
fairchild-poolparty-1.3.17 bin/cloud-verify
fairchild-poolparty-1.3.5 bin/cloud-verify
poolparty-1.3.15 bin/cloud-verify