Class: Herve::CLI::RubyCommands::Pin

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/herve/cli/ruby_commands/pin.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



10
11
12
13
14
15
16
# File 'lib/herve/cli/ruby_commands/pin.rb', line 10

def call(version: nil, **)
  if version.nil?
    show_pinned_ruby
  else
    pin_ruby(version)
  end
end