Sha256: 63aeae677e848500fd9c48a2c178e140882222d25d9e96abf3e08e1be8ac3435
Contents?: true
Size: 319 Bytes
Versions: 3
Compression:
Stored size: 319 Bytes
Contents
require 'travis/cli' module Travis module CLI class Restart < RepoCommand def run(number = last_build.number) authenticate entity = job(number) || build(number) entity.restart say "restarted", "#{entity.class.one} ##{entity.number} has been %s" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
travis-1.5.2 | lib/travis/cli/restart.rb |
travis-1.5.1 | lib/travis/cli/restart.rb |
travis-1.5.0 | lib/travis/cli/restart.rb |