Sha256: dc729ffbaf4729206531e4a7d42cce6a40044f797c3a67a7a13adf139f8224e3

Contents?: true

Size: 421 Bytes

Versions: 5

Compression:

Stored size: 421 Bytes

Contents

module Envious
  module Generators
    class SetupGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      def copy_environment_vars_file
        copy_file 'environment_vars.yml', 'config/environment_vars.yml'
      end

      def configure_gitignore
        append_file('.gitignore', '/config/environment_vars.yml') if File.exists?('.gitignore')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
envious-0.3.1 lib/generators/envious/setup_generator.rb
envious-0.3.0 lib/generators/envious/setup_generator.rb
envious-0.2.0 lib/generators/envious/setup_generator.rb
envious-0.1.1 lib/generators/envious/setup_generator.rb
envious-0.1.0 lib/generators/envious/setup_generator.rb