Class: Herve::CLI::RubyCommands::Pin
- Inherits:
-
BaseCommand
- Object
- Dry::CLI::Command
- BaseCommand
- Herve::CLI::RubyCommands::Pin
- Defined in:
- lib/herve/cli/ruby_commands/pin.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 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 |