Sha256: 435e6f814f77b3fe53d938b487e6c9493b6d541c60ca1dcee8c660edd1c35698
Contents?: true
Size: 680 Bytes
Versions: 9
Compression:
Stored size: 680 Bytes
Contents
require "jdc/cli/app/base" module JDC::App class Health < Base desc "Get application health" group :apps, :info input :apps, :desc => "Show the health information for one or more applications", :argument => :splat, :singular => :app, :from_given => by_name(:app) def health apps = input[:apps] fail "No applications given." if apps.empty? health = with_progress("Getting health status") do apps.collect { |a| [a, app_status(a)] } end line unless quiet? spaced(health) do |app, status| start_line "#{c(app.name, :name)}: " unless quiet? puts status end end end end
Version data entries
9 entries across 9 versions & 1 rubygems