Class: Rails::Engine::Updater

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/engine/updater.rb

Class Method Summary collapse

Class Method Details

.generatorObject



8
9
10
11
# File 'lib/rails/engine/updater.rb', line 8

def generator
  @generator ||= Rails::Generators::PluginGenerator.new ["plugin"],
    { engine: true }, destination_root: ENGINE_ROOT
end

.run(action) ⇒ Object



13
14
15
# File 'lib/rails/engine/updater.rb', line 13

def run(action)
  generator.send(action)
end