Class: Wanda::Rails

Inherits:
SubCommandBase show all
Includes:
Thor::Actions
Defined in:
lib/wanda/rails.rb

Constant Summary collapse

REQUIRED_RUBY =
{
  # rails_version => required_ruby_version
  '6.2' => { required: '2.5.0', recommended: '3.0' },
  '6.1' => { required: '2.5.0', recommended: '3.0' },
  '6.0' => { required: '2.5.0', recommended: '2.6' },
  '5.2' => { required: '2.2.2', recommended: '2.5' },
  '5.1' => { required: '2.2.2', recommended: '2.5' },
  '5.0' => { required: '2.2.2', recommended: '2.4' },
  '4.2' => { required: '1.9.3', recommended: '2.2' }
}.freeze

Instance Method Summary collapse

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#upgradeObject



25
26
27
28
29
30
31
32
# File 'lib/wanda/rails.rb', line 25

def upgrade
  case format_version(options[:to])
  when '5.2'
    rails4_2_to_5_2
  else
    puts set_color('WARN: Not supported', :red)
  end
end