Sha256: 935e5e319d3a04f93f2abe858dbb5d55c0fac2af22bb3c2fa6bd0fb462fd8d94

Contents?: true

Size: 454 Bytes

Versions: 89

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

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

89 entries across 81 versions & 6 rubygems

Version Path
railties-6.0.6.1 lib/rails/engine/updater.rb
railties-6.0.6 lib/rails/engine/updater.rb
railties-6.0.5.1 lib/rails/engine/updater.rb
railties-5.2.8.1 lib/rails/engine/updater.rb
railties-5.2.8 lib/rails/engine/updater.rb
railties-6.0.5 lib/rails/engine/updater.rb
railties-6.0.4.8 lib/rails/engine/updater.rb
railties-5.2.7.1 lib/rails/engine/updater.rb
railties-5.2.7 lib/rails/engine/updater.rb
railties-6.0.4.7 lib/rails/engine/updater.rb
railties-5.2.6.3 lib/rails/engine/updater.rb
railties-6.0.4.6 lib/rails/engine/updater.rb
railties-5.2.6.2 lib/rails/engine/updater.rb
railties-5.2.6.1 lib/rails/engine/updater.rb
railties-6.0.4.5 lib/rails/engine/updater.rb
railties-6.0.4.4 lib/rails/engine/updater.rb
railties-6.0.4.3 lib/rails/engine/updater.rb
railties-6.0.4.2 lib/rails/engine/updater.rb
railties-6.0.4.1 lib/rails/engine/updater.rb
railties-6.0.4 lib/rails/engine/updater.rb