Sha256: 91878d3364ca96e6a3f17dee5287aded6b6b01a462d049d5317edb39a5be0ee8

Contents?: true

Size: 689 Bytes

Versions: 14

Compression:

Stored size: 689 Bytes

Contents

module Heroku
  class API

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

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

    # POST /apps/:app/releases/:release
    def post_release(app, release)
      request(
        :expects  => 200,
        :method   => :post,
        :path     => "/apps/#{app}/releases",
        :query    => {'rollback' => release}
      )
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
heroku-api-0.2.4 lib/heroku/api/releases.rb
heroku-api-0.2.3 lib/heroku/api/releases.rb
heroku-api-0.2.2 lib/heroku/api/releases.rb
heroku-api-0.2.1 lib/heroku/api/releases.rb
heroku-api-0.2.0 lib/heroku/api/releases.rb
heroku-api-0.1.8 lib/heroku/api/releases.rb
heroku-api-0.1.7 lib/heroku/api/releases.rb
heroku-api-0.1.6 lib/heroku/api/releases.rb
heroku-api-0.1.5 lib/heroku/api/releases.rb
heroku-api-0.1.4 lib/heroku/api/releases.rb
heroku-api-0.1.3 lib/heroku/api/releases.rb
heroku-api-0.1.2 lib/heroku/api/releases.rb
heroku-api-0.1.1 lib/heroku/api/releases.rb
heroku-api-0.1.0 lib/heroku/api/releases.rb