Module: TestingBot::Resources::Sharing

Included in:
Api
Defined in:
lib/testingbot/resources/sharing.rb

Overview

Test/build sharing helpers.

Instance Method Summary collapse

Instance Method Details

#get_authentication_hash(identifier) ⇒ Object

Compute the hash used to share private tests/builds with other people.



8
9
10
# File 'lib/testingbot/resources/sharing.rb', line 8

def get_authentication_hash(identifier)
  Digest::MD5.hexdigest("#{@key}:#{@secret}:#{identifier}")
end