Sha256: 7d5cf404fbe77b84aedbdb7046cd134308be80660d223f3d941d6c8d610eb028
Contents?: true
Size: 482 Bytes
Versions: 6
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true require 'travis/cli' module Travis module CLI class Restart < RepoCommand description 'restarts a build or job' def run(number = last_build.number) authenticate entity = job(number) || build(number) error "could not find job or build #{repository.slug}##{number}" unless entity entity.restart say 'restarted', "#{entity.class.one} ##{entity.number} has been %s" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems