Class: LintTrappings::Command::DisplayVersion

Inherits:
Base
  • Object
show all
Defined in:
lib/lint_trappings/command/display_version.rb

Overview

Outputs application version information.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LintTrappings::Command::Base

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
# File 'lib/lint_trappings/command/display_version.rb', line 4

def run
  output.bold(application.executable_name, false)
  output.info(application.version)

  if options[:verbose]
    output.bold('Ruby version: ', false)
    output.info(RUBY_VERSION)
  end
end