Sha256: f65f13f276ef27e316e65867aab90b0f2f9a9c4c133066c406bd0c9ed2641056
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
class Step def self.relocate(path) return path if Open.exists?(path) Path.setup(path) unless Path === path relocated = path.relocate return relocated if Open.exists?(relocated) if path.scan("/").length >= 2 subpath = path.split("/")[-3..-1] * "/" relocated = Path.setup("var/jobs")[subpath] return relocated if Open.exists?(relocated) end path end def self.load(path) path = relocate(path) unless Open.exists?(path) #raise "Could not load #{path}" unless Open.exists?(path) s = Step.new path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scout-gear-10.7.3 | lib/scout/workflow/step/load.rb |
scout-gear-10.7.2 | lib/scout/workflow/step/load.rb |