Sha256: a8af3f80ecdbef7c8f96e33fcf3ec3bf1382b0fbda5db030b8f5b3178aea769f

Contents?: true

Size: 567 Bytes

Versions: 23

Compression:

Stored size: 567 Bytes

Contents

module Blue
  module Config

    def self.included(klass)
      klass.class_eval do
        @@config = Hashie::Mash.new

        def self.configure(new_config = {})
          @@config.deep_merge!(new_config)
        end

        def self.load_app_config!
          configure(YAML.load(IO.read(BLUE_CONFIG)))
        end

        def self.config
          @@config
        end

        Blue.configure({
          :user  => 'rails',
          :group => 'rails',
          :scm   => 'git',
          :prod_safe_ip_addresses => []
        })
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
blue-0.2.7 lib/blue/config.rb
blue-0.2.6 lib/blue/config.rb
blue-0.2.5 lib/blue/config.rb
blue-0.2.3 lib/blue/config.rb
blue-0.2.2 lib/blue/config.rb
blue-0.2.1 lib/blue/config.rb
blue-0.2.0 lib/blue/config.rb
blue-0.1.9 lib/blue/config.rb
blue-0.1.8 lib/blue/config.rb
blue-0.1.7 lib/blue/config.rb
blue-0.1.6 lib/blue/config.rb
blue-0.1.5 lib/blue/config.rb
blue-0.1.4 lib/blue/config.rb
blue-0.1.3 lib/blue/config.rb
blue-0.1.2 lib/blue/config.rb
blue-0.1.1 lib/blue/config.rb
blue-0.1.pre lib/blue/config.rb
blue-0.0.23 lib/blue/config.rb
blue-0.0.22 lib/blue/config.rb
blue-0.0.21 lib/blue/config.rb