Sha256: 8dc80b85c228ef8383f9fda8f5b2e3c39a70663b941405d85acf6ebbf983dace
Contents?: true
Size: 646 Bytes
Versions: 5
Compression:
Stored size: 646 Bytes
Contents
module Bait module BuildHelper def queued? self.reload.status == "queued" end def passed? self.reload.status == "passed" end def clone_path File.join(sandbox_directory, self.name) end def bait_dir File.join(clone_path, ".bait") end def script name File.join(bait_dir, "#{name}.sh") end def cloned? Dir.exists? File.join(clone_path, ".git/") end def cleanup! FileUtils.rm_rf(sandbox_directory) if Dir.exists?(sandbox_directory) end def sandbox_directory File.join Bait.storage_dir, "tester", self.name, self.id end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
bait-0.5.6 | lib/bait/build_helper.rb |
bait-0.5.5 | lib/bait/build_helper.rb |
bait-0.5.4 | lib/bait/build_helper.rb |
bait-0.5.2 | lib/bait/build_helper.rb |
bait-0.5.1 | lib/bait/build_helper.rb |