Class: Herve::CLI::RubyCommands::Find
- Inherits:
-
BaseCommand
- Object
- Dry::CLI::Command
- BaseCommand
- Herve::CLI::RubyCommands::Find
- Defined in:
- lib/herve/cli/ruby_commands/find.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
Instance Method Details
#call(version: nil) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/herve/cli/ruby_commands/find.rb', line 10 def call(version: nil, **) ruby = RubyCommands.find_ruby(config, version) raise RubyError, "no matching ruby" if ruby.nil? puts ruby.executable_path end |