Sha256: 109b16fa9494400a99d81244bf101be3fc3c58fe12f7704922a046e46141d3ff
Contents?: true
Size: 811 Bytes
Versions: 89
Compression:
Stored size: 811 Bytes
Contents
gem 'settingslogic' say_wizard "Generating config/application.yml..." append_file "config/application.rb", <<-RUBY require 'settings' RUBY create_file "lib/settings.rb", <<-RUBY class Settings < Settingslogic source "#\{Rails.root\}/config/application.yml" namespace Rails.env end RUBY create_file "config/application.yml", <<-YAML defaults: &defaults cool: saweet: nested settings neat_setting: 24 awesome_setting: <%= "Did you know 5 + 5 = #{5 + 5}?" %> development: <<: *defaults neat_setting: 800 test: <<: *defaults production: <<: *defaults YAML __END__ name: Settingslogic description: "A simple and straightforward settings solution that uses an ERB enabled YAML file and a singleton design pattern." author: elandesign category: other tags: [utilities, configuration]
Version data entries
89 entries across 89 versions & 7 rubygems