Module: Mongodump::Heroku
- Defined in:
- lib/mongodump/heroku.rb
Constant Summary collapse
- @@heroku_config =
"heroku config --shell"
Class Method Summary collapse
Class Method Details
.parse_config ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mongodump/heroku.rb', line 5 def self.parse_config config = Bundler.with_clean_env { `#{@@heroku_config}` } hash = Hash.new for line in config.split("\n") line_array = line.split("=") hash[line_array.first.downcase.to_sym] = line_array.second end return hash end |