Class: Capistrano::CI::Clients::TravisPro
- Defined in:
- lib/capistrano/ci/clients/travis_pro.rb
Instance Attribute Summary
Attributes inherited from Travis
Instance Method Summary collapse
-
#initialize(settings = {}) ⇒ TravisPro
constructor
A new instance of TravisPro.
Methods inherited from Travis
Methods inherited from Base
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 |