Sha256: 44cd5fd41ae85b48770b84d01c2cfc72501a542b4286cff1b16aa25047a23f40

Contents?: true

Size: 489 Bytes

Versions: 6

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'

module LokaliseRails
  # Generators for LokaliseRails
  module Generators
    # Installs LokaliseRails config
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates', __dir__)

      desc 'Creates a LokaliseRails config file.'

      def copy_config
        template 'lokalise_rails_config.rb', "#{Rails.root}/config/lokalise_rails.rb"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lokalise_rails-7.0.0 lib/generators/lokalise_rails/install_generator.rb
lokalise_rails-6.0.0 lib/generators/lokalise_rails/install_generator.rb
lokalise_rails-5.2.0 lib/generators/lokalise_rails/install_generator.rb
lokalise_rails-5.1.0 lib/generators/lokalise_rails/install_generator.rb
lokalise_rails-5.0.1 lib/generators/lokalise_rails/install_generator.rb
lokalise_rails-5.0.0 lib/generators/lokalise_rails/install_generator.rb