Class: Hotdog::Commands::Version
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Hotdog::Commands::Version
- Defined in:
- lib/hotdog/commands/version.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
#application, #logger, #options, #persistent_db_path
Instance Method Summary collapse
Methods inherited from BaseCommand
#define_options, #execute, #fixed_string?, #initialize, #parse_options, #reload
Constructor Details
This class inherits a constructor from Hotdog::Commands::BaseCommand
Instance Method Details
#run(args = [], options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/hotdog/commands/version.rb', line 8 def run(args=[], ={}) ruby = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["ruby_install_name"]) exit(system(ruby, $0, "--version") ? 0 : 1) end |