Sha256: 0facf9ddf560c81cb2ae7d83463c0719ad4b13f646464476764ac1b6e9598954
Contents?: true
Size: 341 Bytes
Versions: 18
Compression:
Stored size: 341 Bytes
Contents
module Bait module SpecHelpers module ScriptMaker def write_script_with_status script, status File.open(script, "w") do |f| f.puts "#!/usr/bin/env bash" f.puts "echo this is a test script" f.puts "exit #{status.to_i}" end File.chmod(0755, script) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems