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