Class: LintTrappings::Command::DisplayVersion
- Defined in:
- lib/lint_trappings/command/display_version.rb
Overview
Outputs application version information.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from LintTrappings::Command::Base
Instance Method Details
#run ⇒ Object
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 [:verbose] output.bold('Ruby version: ', false) output.info(RUBY_VERSION) end end |