Class: Herve::CLI::RubyCommands::Find

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/herve/cli/ruby_commands/find.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#config, #logger

Instance Method Summary collapse

Methods inherited from BaseCommand

inherited

Instance Method Details

#call(version: nil) ⇒ Object

Raises:



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