Sha256: 08c5633ede51ed5ab11b3accd5bf75c4e89ea91b55228e7af29b049c736a2a48
Contents?: true
Size: 407 Bytes
Versions: 21
Compression:
Stored size: 407 Bytes
Contents
module Bard::CLI::Hurt def self.included mod mod.class_eval do desc "hurt <command>", "reruns a command until it fails" def hurt *args (1..).each do |count| puts "Running attempt #{count}" system *args unless $?.success? puts "Ran #{count-1} times before failing" break end end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems