Sha256: e761606387c1757852e49b4ccb4bf9cee9039b11fe41aa6c38f94d25b6d0f9a2

Contents?: true

Size: 419 Bytes

Versions: 19

Compression:

Stored size: 419 Bytes

Contents

require "rails/generators"
require "rails/generators/rails/plugin/plugin_generator"

module Rails
  class Engine
    class Updater
      class << self
        def generator
          @generator ||= Rails::Generators::PluginGenerator.new ["plugin"],
            { engine: true }, destination_root: ENGINE_ROOT
        end

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/engine/updater.rb
railties-5.1.7.rc1 lib/rails/engine/updater.rb
railties-5.1.6.2 lib/rails/engine/updater.rb
railties-5.1.6.1 lib/rails/engine/updater.rb
railties-5.1.6 lib/rails/engine/updater.rb
railties-5.1.5 lib/rails/engine/updater.rb
railties-5.1.5.rc1 lib/rails/engine/updater.rb
railties-5.1.4 lib/rails/engine/updater.rb
railties-5.1.4.rc1 lib/rails/engine/updater.rb
railties-5.1.3 lib/rails/engine/updater.rb
railties-5.1.3.rc3 lib/rails/engine/updater.rb
railties-5.1.3.rc2 lib/rails/engine/updater.rb
railties-5.1.3.rc1 lib/rails/engine/updater.rb
railties-5.1.2 lib/rails/engine/updater.rb
railties-5.1.2.rc1 lib/rails/engine/updater.rb
railties-5.1.1 lib/rails/engine/updater.rb
railties-5.1.0 lib/rails/engine/updater.rb
railties-5.1.0.rc2 lib/rails/engine/updater.rb
railties-5.1.0.rc1 lib/rails/engine/updater.rb