Module: BuildEval::Travis::Session

Defined in:
lib/build_eval/travis/session.rb,
lib/build_eval/travis/session/pool.rb,
lib/build_eval/travis/session/factory.rb,
lib/build_eval/travis/session/session.rb

Defined Under Namespace

Classes: Factory, Pool, Session

Class Method Summary collapse

Class Method Details

.open(github_token) ⇒ Object


5
6
7
8
9
10
# File 'lib/build_eval/travis/session.rb', line 5

def self.open(github_token)
  session = BuildEval::Travis::Session::Pool.get(github_token)
  yield session
ensure
  BuildEval::Travis::Session::Pool.release(session)
end