Method: ElasticDot::Command::Config.get
- Defined in:
- lib/elasticdot/command/config.rb
.get(args, opts) ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/elasticdot/command/config.rb', line 38 def self.get(args, opts) var = args.shift find_app! opts vars = api.get("/domains/#{@app}")['vars'] value = vars.select {|v| v['key_name'] == var }.first['value'] rescue nil puts value if value end |