Class: Capistrano::Doctor::GemsDoctor

Inherits:
Object
  • Object
show all
Includes:
OutputHelpers
Defined in:
lib/capistrano/doctor/gems_doctor.rb

Overview

Prints table of all Capistrano-related gems and their version numbers. If there is a newer version of a gem available, call attention to it.

Instance Method Summary collapse

Methods included from OutputHelpers

#puts, #table, #title, #warning

Instance Method Details

#callObject



10
11
12
13
14
15
16
17
18
# File 'lib/capistrano/doctor/gems_doctor.rb', line 10

def call
  title("Gems")
  table(all_gem_names) do |gem, row|
    row.yellow if update_available?(gem)
    row << gem
    row << installed_gem_version(gem)
    row << "(update available)" if update_available?(gem)
  end
end