lib/travis/cli/restart.rb in travis-1.11.1 vs lib/travis/cli/restart.rb in travis-1.12.0
- old
+ new
@@ -1,18 +1,20 @@
+# frozen_string_literal: true
+
require 'travis/cli'
module Travis
module CLI
class Restart < RepoCommand
- description "restarts a build or job"
+ 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"
+ say 'restarted', "#{entity.class.one} ##{entity.number} has been %s"
end
end
end
end