Sha256: c9e62f426776aa429e1f2c4c42f58154a8493eaf745fb3ab5548bd1179270df0
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
module ActiveTiger # The Configuration class is responsible for determining your username/password # based on your given RAILS_ENV and RAILS_ROOT. It looks for a yaml configuration # file at: # #{RAILS_ROOT}/config/activetiger/#{RAILS_ENV}.yml # # A sample test configuration would be: # username: demo # password: password class Configuration def initialize config_path = File.join(RAILS_ROOT, "config", "activetiger", "#{RAILS_ENV}.yml") @config = YAML.load(File.read(config_path)) end def username @config["username"] end def password @config["password"] end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
garrettlancaster-activetiger-0.1.3 | lib/activetiger/configuration.rb |
activetiger-0.1.1 | lib/activetiger/configuration.rb |
activetiger-0.1.0 | lib/activetiger/configuration.rb |