Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Credentials.scala « github « no_carrier « getbootstrap « com « scala « main « src - github.com/twbs/no-carrier.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e22aafa1ade0a387b79c55c87f711b79103776c (plain)
1
2
3
4
5
6
7
8
9
package com.getbootstrap.no_carrier.github

import com.jcabi.github.{Github, RtGithub}
import com.jcabi.http.wire.RetryWire

case class Credentials(username: String, password: String) {
  private def basicGithub: Github = new RtGithub(username, password)
  def github: Github = new RtGithub(basicGithub.entry.through(classOf[RetryWire])) // FIXME: use RetryCarefulWire once it's available
}