Sha256: 848f3711afd0d24875dbe410774dd6820f1ca7ba9c47d2447c634eaf0b32987d
Contents?: true
Size: 638 Bytes
Versions: 5
Compression:
Stored size: 638 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) 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.13 | lib/bait/build_helper.rb |
bait-0.5.12 | lib/bait/build_helper.rb |
bait-0.5.11 | lib/bait/build_helper.rb |
bait-0.5.10 | lib/bait/build_helper.rb |
bait-0.5.9 | lib/bait/build_helper.rb |