Class: Travis::CLI::Gh::Signature

Inherits:
RepoCommand
  • Object
show all
Includes:
GitHub::Authenticated, GitHub::Hooks
Defined in:
lib/travis/cli/gh/signature.rb

Instance Method Summary collapse

Methods included from GitHub::Authenticated

#auth, #gh, #plugin_config

Methods included from GitHub::Hooks

#hooks, #travis_hook

Instance Method Details

#runObject



9
10
11
12
# File 'lib/travis/cli/gh/signature.rb', line 9

def run
  signature = Digest::SHA2.hexdigest(repository.slug + travis_hook["config"]["token"])
  say signature, "Signature used for #{repository.slug} web hooks: %s"
end