Module: Ktct::Config
- Included in:
- Baofu, Wangjinshe
- Defined in:
- lib/ktct/config.rb
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ktct/config.rb', line 5 def config return @config if @config config_file_name = [:config] yaml = YAML.load(File.read(File.(config_file_name))) env = ENV['KTCT_ENV'] || yaml['default_env'] yaml[env] end |