Class: Stable::Commands::UpgradeRuby
- Inherits:
-
Object
- Object
- Stable::Commands::UpgradeRuby
- Defined in:
- lib/stable/commands/upgrade_ruby.rb
Overview
Command for upgrading/downgrading Ruby versions for applications
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name, version) ⇒ UpgradeRuby
constructor
A new instance of UpgradeRuby.
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
#call ⇒ Object
14 15 16 |
# File 'lib/stable/commands/upgrade_ruby.rb', line 14 def call Services::AppUpgrader.new(@name, @version).call end |