Sha256: 938a4c61f56845e8287620db4602648b4ddc1a56eff499c5145beb9ba6b59d1d

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

require_relative "../base"

module Rsg
  module Dotenv
    class InstallGenerator < Rsg::Generators::Base
      def banner
        say "Configuring dotent-rails in development and test environments"
      end

      def add_dotenv
        append_gem "dotenv-rails",
          version: "< 3",
          after: "rails",
          group: [:development, :test],
          require: "dotenv/rails-now"
      end

      def configure_dotenv
        copy_file "env.development", ".env.development"
        copy_file "env.test", ".env.test"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rsg-0.0.1 lib/rsg/generators/dotenv/install_generator.rb