Sha256: d235bafd0e0ce69135f27e2b29d50dcb60e444d4d30e5f4ea9461ef4c7f01c2a

Contents?: true

Size: 675 Bytes

Versions: 10

Compression:

Stored size: 675 Bytes

Contents

require 'rails'
require 'rails/generators'

class ConfigoroGenerator < Rails::Generators::Base
  desc "Installs example configuration files for use with Configoro"

  def create_yaml_files
    create_file "config/environments/common/example.yml",
                { 'common_setting' => true }.to_yaml
    create_file "config/environments/development/example.yml",
                { 'environment_name' => 'Development' }.to_yaml
    create_file "config/environments/test/example.yml",
                { 'environment_name' => 'Test' }.to_yaml
    create_file "config/environments/production/example.yml",
                { 'environment_name' => 'Production' }.to_yaml
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
configoro-1.4.1 generators/configoro_generator.rb
configoro-1.4.0 generators/configoro_generator.rb
configoro-1.3.0 generators/configoro_generator.rb
configoro-1.2.4 generators/configoro_generator.rb
configoro-1.2.3 generators/configoro_generator.rb
configoro-1.2.2 generators/configoro_generator.rb
configoro-1.2.1 generators/configoro_generator.rb
configoro-1.2.0 generators/configoro_generator.rb
configoro-1.1.0 generators/configoro_generator.rb
configoro-1.0.0 generators/configoro_generator.rb