Sha256: 49c218c069175aafe27837a5c05826da7352c2d201f70542a3c98b5096f96de3
Contents?: true
Size: 954 Bytes
Versions: 9
Compression:
Stored size: 954 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__) + "/../lib") require "poolparty" # require "poolpartycl" require 'git-style-binary/command' GitStyleBinary.command do version "PoolParty #{$0} command" 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
9 entries across 9 versions & 2 rubygems