class Bcome::Driver::Gcp::Authentication::Base

Public Instance Methods

authorized?() click to toggle source

Overrides

# File lib/objects/driver/gcp/authentication/base.rb, line 8
def authorized?
  raise 'Should be overidden'
end
credential_directory() click to toggle source

Credential helpers –

# File lib/objects/driver/gcp/authentication/base.rb, line 20
def credential_directory
  '.gauth'
end
credential_file() click to toggle source
# File lib/objects/driver/gcp/authentication/base.rb, line 28
def credential_file
  "#{@node.keyed_namespace}:#{credential_file_suffix}"
end
ensure_credential_directory() click to toggle source
# File lib/objects/driver/gcp/authentication/base.rb, line 32
def ensure_credential_directory
  `mkdir -p #{credential_directory}`
end
full_path_to_credential_file() click to toggle source
# File lib/objects/driver/gcp/authentication/base.rb, line 24
def full_path_to_credential_file
  "#{credential_directory}/#{credential_file}"
end
loader_title() click to toggle source

Loading bar -

# File lib/objects/driver/gcp/authentication/base.rb, line 14
def loader_title
  'Authenticating' + "\s#{@driver.pretty_provider_name.bc_blue.bold}\s#{@driver.pretty_resource_location.underline}".bc_green
end