Sha256: 0247f299ef7b3b01849b07121800db6c0e2c38e1ba1d8e398a72de6fe6418511
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
#!/usr/bin/env ruby require "pathname" default = Pathname(ENV.fetch("BUNDLE_GEMFILE", "Gemfile")) relative_to_binstub = Pathname(__FILE__).realpath + "../../Gemfile" gemfile = [default, relative_to_binstub].detect(&:exist?) if gemfile ENV["BUNDLE_GEMFILE"] = gemfile.to_s require "rubygems" require "bundler/setup" else require "rubygems" end def ignore_interrupts(*args) args.unshift(RbConfig.ruby) if Gem.win_platform? pid = spawn(*args) begin Process.wait(pid) rescue Interrupt retry end return $? == 0 end guard_core_path = Gem.bin_path("guard", "_guard-core") while !ignore_interrupts(guard_core_path, *ARGV) && $?.exitstatus == 2 puts("Restarting guard...") end exit($?.exitstatus)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guard-2.12.4 | bin/guard |