Class: Sleet::CircleCi

Inherits:
Object
  • Object
show all
Defined in:
lib/sleet/circle_ci.rb

Class Method Summary collapse

Class Method Details

.connectionObject



11
12
13
14
15
16
# File 'lib/sleet/circle_ci.rb', line 11

def self.connection
  Faraday.new do |b|
    b.use FaradayMiddleware::FollowRedirects
    b.adapter :net_http
  end
end

.get(url, token) ⇒ Object



7
8
9
# File 'lib/sleet/circle_ci.rb', line 7

def self.get(url, token)
  connection.get(url, 'circle-token' => token)
end