module EacLauncher::Git::SubWarpBase
Private Instance Methods
find_parent_instance(current)
click to toggle source
# File lib/eac_launcher/git/sub_warp_base.rb, line 17 def find_parent_instance(current) if ::EacLauncher::Stereotype.git_stereotypes.any? { |s| current.stereotype?(s) } return current end current.parent ? find_parent_instance(current.parent) : nil end
parent_instance_uncached()
click to toggle source
# File lib/eac_launcher/git/sub_warp_base.rb, line 10 def parent_instance_uncached r = find_parent_instance(instance.parent) return r if r ::EacLauncher::Instances::Error.new('Git parent not found') end
to_parent_git_path()
click to toggle source
# File lib/eac_launcher/git/sub_warp_base.rb, line 25 def to_parent_git_path instance.logical.gsub(%r{\A#{Regexp.quote(parent_instance.logical)}/}, '') end