Sha256: 8abc154db21c69227c5f3c494a4b807f15d6c56561e83588cd7d1635b60a30dc
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
#!/usr/bin/env ruby require "escort" require "soa_doctor" Escort::App.create do |app| app.config_file ".healthcheck", :autocreate => true app.version SoaDoctor::VERSION app.summary "Print services statuses and message" app.description "Given a yaml file with a service name and url we can ping them and display results in a table" app.options do |opts| opts.opt :file, "YAML file destination", :short => '-f', :long => '--file', :type => :string opts.validate(:file, "must exist") { |option| File.exists?(File.expand_path(option)) } end app.action do |options, arguments| puts SoaDoctor::Commands::StatusCheck.new(options, arguments).execute end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
soa_doctor-0.0.3 | bin/healthcheck |
soa_doctor-0.0.2 | bin/healthcheck |