class Lono::Upgrade

Public Class Methods

new(options) click to toggle source
# File lib/lono/upgrade.rb, line 3
def initialize(options)
  @options = options
end

Public Instance Methods

app_blueprints_move() click to toggle source
# File lib/lono/upgrade.rb, line 12
def app_blueprints_move
  return if File.exist?("#{Lono.root}/app/blueprints")
  return unless File.exist?("#{Lono.root}/blueprints")

  FileUtils.mv("#{Lono.root}/blueprints", "#{Lono.root}/app/blueprints")
  puts "Move blueprints to app/blueprints"
end
run() click to toggle source
# File lib/lono/upgrade.rb, line 7
def run
  app_blueprints_move # v6 to v7
  puts "Lono project upgraded"
end