Sha256: 29b7d8abd2894ec86b8022a28dd66d893169f152f28f611dc3c899cc421b1e64

Contents?: true

Size: 708 Bytes

Versions: 22

Compression:

Stored size: 708 Bytes

Contents

module Heroku
  class API

    # DELETE /apps/:app/config_vars/:key
    def delete_config_var(app, key)
      request(
        :expects  => 200,
        :method   => :delete,
        :path     => "/apps/#{app}/config_vars/#{key}"
      )
    end

    # GET /apps/:app/config_vars
    def get_config_vars(app)
      request(
        :expects  => 200,
        :method   => :get,
        :path     => "/apps/#{app}/config_vars"
      )
    end

    # PUT /apps/:app/config_vars
    def put_config_vars(app, vars)
      request(
        :body     => Heroku::API::OkJson.encode(vars),
        :expects  => 200,
        :method   => :put,
        :path     => "/apps/#{app}/config_vars"
      )
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
heroku-api-0.2.13 lib/heroku/api/config_vars.rb
heroku-api-0.2.12 lib/heroku/api/config_vars.rb
heroku-api-0.2.11 lib/heroku/api/config_vars.rb
heroku-api-0.2.10 lib/heroku/api/config_vars.rb
heroku-api-0.2.9 lib/heroku/api/config_vars.rb
heroku-api-0.2.8 lib/heroku/api/config_vars.rb
heroku-api-0.2.6 lib/heroku/api/config_vars.rb
heroku-api-0.2.5 lib/heroku/api/config_vars.rb
heroku-api-0.2.4 lib/heroku/api/config_vars.rb
heroku-api-0.2.3 lib/heroku/api/config_vars.rb
heroku-api-0.2.2 lib/heroku/api/config_vars.rb
heroku-api-0.2.1 lib/heroku/api/config_vars.rb
heroku-api-0.2.0 lib/heroku/api/config_vars.rb
heroku-api-0.1.8 lib/heroku/api/config_vars.rb
heroku-api-0.1.7 lib/heroku/api/config_vars.rb
heroku-api-0.1.6 lib/heroku/api/config_vars.rb
heroku-api-0.1.5 lib/heroku/api/config_vars.rb
heroku-api-0.1.4 lib/heroku/api/config_vars.rb
heroku-api-0.1.3 lib/heroku/api/config_vars.rb
heroku-api-0.1.2 lib/heroku/api/config_vars.rb