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

Version Path
cloulu-1.0.0 lib/vmc/cli/app/health.rb
cloulu-0.7.0 lib/vmc/cli/app/health.rb
cloulu-0.6.6 lib/vmc/cli/app/health.rb
cloulu-0.6.5 lib/vmc/cli/app/health.rb
cloulu-0.6.1 lib/vmc/cli/app/health.rb
cloulu-0.6.0 lib/vmc/cli/app/health.rb
cloulu-0.5.1 lib/vmc/cli/app/health.rb
cloulu-0.5.0 lib/vmc/cli/app/health.rb
cloulu-0.3.0 lib/vmc/cli/app/health.rb
cloulu-0.2.6 lib/vmc/cli/app/health.rb
cloulu-0.2.5 lib/vmc/cli/app/health.rb
cloulu-0.2.4 lib/vmc/cli/app/health.rb
cloulu-0.2.3 lib/vmc/cli/app/health.rb
cloulu-0.2.1 lib/vmc/cli/app/health.rb
cloulu-0.2.0 lib/vmc/cli/app/health.rb
cloulu-0.1.6 lib/vmc/cli/app/health.rb
cloulu-0.1.5 lib/vmc/cli/app/health.rb
cloulu-0.1.2 lib/vmc/cli/app/health.rb
cloulu-0.1.1 lib/vmc/cli/app/health.rb