Sha256: f0532327f8080c210b8e65181c44326c57757c4d09269077c4daf80e75a71db7

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

class Base::InitializeClient
  include Interactor

  # @param auth_token
  def call
    client = Hurley::Client.new "https://api.upcloud.com/1.2/"
    client.header["Authorization"] = "Basic #{context.auth_token}"
    client.header["Content-Type"] = "application/json"

    context.client = client
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chef-provisioning-upcloud-0.2.0 lib/chef/provisioning/interactors/base/initialize_client.rb