Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Configus helps you easily manage environment specific settings
Ruby
tree: 86030a3b32

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
README.md
Rakefile
configus.gemspec

README.md

Configus

Summary

Configus helps you easily manage environment specific settings

Installing

Add this to your Gemfile:

gem "configus"

Examples

Definition

Configus.build :development do # set current environment
  env :production do
    website_url 'http://example.com'
    email do
      pop do
        address 'pop.example.com'
        port    110
      end
      smtp do
        address 'smtp.example.com'
        port    25
      end
    end
  end

  env :development, :parent => :production do
    website_url 'http://text.example.com'
    email do
      smtp do
        address 'smpt.text.example.com'
      end
    end
  end
end

Usage

configus.website_url # => 'http://text.example.com'
configus.email.pop.port # => 110

Rails

define your config in config/initializers/configus.rb

Configus.build Rails.env do
  # settigns
end

Similar

Something went wrong with that request. Please try again.