Class: PlatformAPI::ConfigVar
- Inherits:
-
Object
- Object
- PlatformAPI::ConfigVar
- Defined in:
- lib/platform-api/client.rb
Overview
Config Vars allow you to manage the configuration information provided to an app on Heroku.
Instance Method Summary collapse
-
#info_for_app(app_id_or_app_name) ⇒ Object
Get config-vars for app.
-
#info_for_app_release(app_id_or_app_name, release_id_or_release_version) ⇒ Object
Get config-vars for a release.
-
#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.
1630 1631 1632 |
# File 'lib/platform-api/client.rb', line 1630 def initialize(client) @client = client end |
Instance Method Details
#info_for_app(app_id_or_app_name) ⇒ Object
Get config-vars for app.
1637 1638 1639 |
# File 'lib/platform-api/client.rb', line 1637 def info_for_app(app_id_or_app_name) @client.config_var.info_for_app(app_id_or_app_name) end |
#info_for_app_release(app_id_or_app_name, release_id_or_release_version) ⇒ Object
Get config-vars for a release.
1645 1646 1647 |
# File 'lib/platform-api/client.rb', line 1645 def info_for_app_release(app_id_or_app_name, release_id_or_release_version) @client.config_var.info_for_app_release(app_id_or_app_name, release_id_or_release_version) 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
.
1653 1654 1655 |
# File 'lib/platform-api/client.rb', line 1653 def update(app_id_or_app_name, body = {}) @client.config_var.update(app_id_or_app_name, body) end |