Method: ElasticDot::Command::Addons.add
- Defined in:
- lib/elasticdot/command/addons.rb
.add(addon, opts) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/elasticdot/command/addons.rb', line 2 def self.add(addon, opts) find_app! opts addon, tier = addon[0].split ':', 2 puts "Configuring addon #{addon} for app #{@app}..." api.post "/apps/#{@app}/addons/#{addon}", tier: tier end |