Class: Capistrano::CI::Clients::TravisPro

Inherits:
Travis
  • Object
show all
Defined in:
lib/capistrano/ci/clients/travis_pro.rb

Instance Attribute Summary

Attributes inherited from Travis

#repository_name

Instance Method Summary collapse

Methods inherited from Travis

#passed?, #state

Methods inherited from Base

#passed?, #state

Constructor Details

#initialize(settings = {}) ⇒ TravisPro

Returns a new instance of TravisPro.



7
8
9
10
11
# File 'lib/capistrano/ci/clients/travis_pro.rb', line 7

def initialize(settings = {})
  @repository_name = settings[:ci_repository]

  self.class.headers 'Accept' => 'application/vnd.travis-ci.2+json', "Authorization" => "token #{settings[:ci_access_token]}"
end