Class: Rails::Engine::Updater

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

Class Method Summary collapse

Class Method Details

.generatorObject



10
11
12
13
# File 'lib/rails/engine/updater.rb', line 10

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

.run(action) ⇒ Object



15
16
17
# File 'lib/rails/engine/updater.rb', line 15

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