Sha256: 3a86c0c6d521797df948220739937aa84a03b4724f81b42a4d385818d28e57ec

Contents?: true

Size: 531 Bytes

Versions: 91

Compression:

Stored size: 531 Bytes

Contents

module Fog
  module Vcloud
    class Compute

      class Real


        def login
          headers = { 'Authorization' => authorization_header }
          uri = if version == '1.0'
            "#{base_url}/login"
          else
            "#{base_path_url}/sessions"
          end
          unauthenticated_request({
            :expects  => 200,
            :headers  => headers,
            :method   => 'POST',
            :parse    => true,
            :uri      => uri
          })
        end

      end
    end
  end
end

Version data entries

91 entries across 91 versions & 16 rubygems

Version Path
michiels-fog-1.3.1 lib/fog/vcloud/requests/compute/login.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/vcloud/requests/compute/login.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb
fog-1.3.1 lib/fog/vcloud/requests/compute/login.rb
fog-1.3.0 lib/fog/vcloud/requests/compute/login.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb
fog-1.2.0 lib/fog/vcloud/requests/compute/login.rb
ktheory-fog-1.1.2 lib/fog/vcloud/requests/compute/login.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/login.rb