Sha256: b41a390360a5aecd27c301772b0e576f16ef54973e9c4b688410e8078085ea90

Contents?: true

Size: 377 Bytes

Versions: 4

Compression:

Stored size: 377 Bytes

Contents

class Pleiades::InstallGenerator < Rails::Generators::Base
  source_root File.expand_path('templates', __dir__)

  def generate_file
    cst = Pleiades::Constants::File
    file_paths =
      %W[
        #{cst::CONFIG}
        #{cst::INITIALIZER}
        #{cst::ROUTER}
        #{cst::ROUTING_PROXY}
      ]

    file_paths.each { |f| copy_file File.basename(f), f }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pleiades-0.1.6 lib/pleiades/generators/pleiades/install/install_generator.rb
pleiades-0.1.5 lib/pleiades/generators/pleiades/install/install_generator.rb
pleiades-0.1.4 lib/pleiades/generators/pleiades/install/install_generator.rb
pleiades-0.1.3 lib/pleiades/generators/pleiades/install/install_generator.rb