Sha256: a4b8953137b192028cfb7774c6867778d9604a05483850defb7270555875afd6

Contents?: true

Size: 1.5 KB

Versions: 26

Compression:

Stored size: 1.5 KB

Contents

module Heroku
  class API

    # DELETE /apps/:app/ssl-endpoint/:cname
    def delete_ssl_endpoint(app, cname)
      request(
        :expects  => 200,
        :method   => :delete,
        :path     => "/apps/#{app}/ssl-endpoints/#{escape(cname)}"
      )
    end

    # GET /apps/:app/ssl-endpoint/:cname
    def get_ssl_endpoint(app, cname)
      request(
        :expects  => 200,
        :method   => :get,
        :path     => "/apps/#{app}/ssl-endpoints/#{escape(cname)}"
      )
    end

    # GET /apps/:app/ssl-endpoints
    def get_ssl_endpoints(app)
      request(
        :expects  => 200,
        :method   => :get,
        :path     => "/apps/#{app}/ssl-endpoints"
      )
    end

    # POST /apps/:app/ssl-endpoints
    def post_ssl_endpoint(app, pem, key)
      request(
        :expects  => 200,
        :method   => :post,
        :path     => "/apps/#{app}/ssl-endpoints",
        :query     => { 'key' => key, 'pem' => pem }
      )
    end

    # POST /apps/:app/ssl-endpoints/:cname/rollback
    def post_ssl_endpoint_rollback(app, cname)
      request(
        :expects  => 200,
        :method   => :post,
        :path     => "/apps/#{app}/ssl-endpoints/#{escape(cname)}/rollback"
      )
    end

    # PUT /apps/:app/ssl-endpoints/:cname
    def put_ssl_endpoint(app, cname, pem, key)
      request(
        :expects  => 200,
        :method   => :put,
        :path     => "/apps/#{app}/ssl-endpoints/#{escape(cname)}",
        :query     => { 'key' => key, 'pem' => pem }
      )
    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
heroku-api-0.4.3 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.4.2 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.4.1 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.4.0 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.23 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.22 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.21 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.20 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.19 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.18 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.17 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.16 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.15 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.14 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.13 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.12 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.11 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.10 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.9 lib/heroku/api/ssl_endpoints.rb
heroku-api-0.3.8 lib/heroku/api/ssl_endpoints.rb