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

Version Path
vmc-0.4.7 lib/vmc/cli/app/health.rb
vmc-0.4.6 lib/vmc/cli/app/health.rb
vmc-0.4.5 lib/vmc/cli/app/health.rb
vmc-0.4.4 lib/vmc/cli/app/health.rb
vmc-0.4.3 lib/vmc/cli/app/health.rb
vmc-0.4.2 lib/vmc/cli/app/health.rb
vmc-0.4.1 lib/vmc/cli/app/health.rb
vmc-0.4.0 lib/vmc/cli/app/health.rb
vmc-0.4.0.beta.97 vmc-ng/lib/vmc/cli/app/health.rb
vmc-0.4.0.beta.96 vmc-ng/lib/vmc/cli/app/health.rb
vmc-0.4.0.beta.94 vmc-ng/lib/vmc/cli/app/health.rb