Class: Lono::Upgrade
- Inherits:
-
Object
- Object
- Lono::Upgrade
- Defined in:
- lib/lono/upgrade.rb
Instance Method Summary collapse
- #app_blueprints_move ⇒ Object
-
#initialize(options) ⇒ Upgrade
constructor
A new instance of Upgrade.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Upgrade
Returns a new instance of Upgrade.
3 4 5 |
# File 'lib/lono/upgrade.rb', line 3 def initialize() = end |
Instance Method Details
#app_blueprints_move ⇒ Object
12 13 14 15 16 17 18 |
# 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 ⇒ Object
7 8 9 10 |
# File 'lib/lono/upgrade.rb', line 7 def run app_blueprints_move # v6 to v7 puts "Lono project upgraded" end |