Sha256: a7cd9db990e1efa81d25cf14ce1a5a005f22a7810cb91500c7f66186e2a710b7
Contents?: true
Size: 289 Bytes
Versions: 2
Compression:
Stored size: 289 Bytes
Contents
class WorkDir def self.find base_dir return ROBOT_ROOT if defined? ROBOT_ROOT bot_root = base_dir base = Pathname.new base_dir base.ascend do |p| if p.parent.basename.to_s =~ /releases/ bot_root = p break end end bot_root end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
robot-controller-0.3.3 | lib/robot-controller/work_dir.rb |
robot-controller-0.3.4 | lib/robot-controller/work_dir.rb |