# File lib/gemnasium/gitlab_service/pusher.rb, line 16 def initialize(options = {}) @repo_path = options.fetch(:repo) @commit_sha = options.fetch(:after) @branch_name = options.fetch(:ref).to_s.sub(/\Arefs\/(heads|tags)\//, '') @project_slug = options.fetch(:token) @client ||= options.fetch(:client){ Gemnasium::GitlabService::Client.new(options) } end