Class: SnapDeploy::Provider::Heroku::API::ConfigVar
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::ConfigVar
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
Config Vars allow you to manage the configuration information provided to an app on Heroku.
Instance Method Summary collapse
-
#info(app_id_or_app_name) ⇒ Object
Get config-vars for app.
-
#initialize(client) ⇒ ConfigVar
constructor
A new instance of ConfigVar.
-
#update(app_id_or_app_name, body) ⇒ Object
Update config-vars for app.
Constructor Details
#initialize(client) ⇒ ConfigVar
Returns a new instance of ConfigVar.
755 756 757 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 755 def initialize(client) @client = client end |
Instance Method Details
#info(app_id_or_app_name) ⇒ Object
Get config-vars for app.
762 763 764 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 762 def info(app_id_or_app_name) @client.config_var.info(app_id_or_app_name) end |
#update(app_id_or_app_name, body) ⇒ Object
Update config-vars for app. You can update existing config-vars by setting them again, and remove by setting it to ‘NULL`.
770 771 772 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 770 def update(app_id_or_app_name, body) @client.config_var.update(app_id_or_app_name, body) end |