Sha256: d1b8d7f01ce6dcc2742c3ee1a59b8136d838c06543f611b0e88c07a6c6d8b6b7
Contents?: true
Size: 645 Bytes
Versions: 19
Compression:
Stored size: 645 Bytes
Contents
require "vmc/cli/app/base" module VMC::App class Health < Base desc "Get application health" group :apps, :info input :apps, :desc => "Applications to start", :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
19 entries across 19 versions & 1 rubygems