Class: Stable::Commands::UpgradeRuby

Inherits:
Object
  • Object
show all
Defined in:
lib/stable/commands/upgrade_ruby.rb

Overview

Command for upgrading/downgrading Ruby versions for applications

Instance Method Summary collapse

Constructor Details

#initialize(name, version) ⇒ UpgradeRuby

Returns a new instance of UpgradeRuby.



9
10
11
12
# File 'lib/stable/commands/upgrade_ruby.rb', line 9

def initialize(name, version)
  @name = name
  @version = version
end

Instance Method Details

#callObject



14
15
16
# File 'lib/stable/commands/upgrade_ruby.rb', line 14

def call
  Services::AppUpgrader.new(@name, @version).call
end