Method: DeployGate::Xcode::Ios.project_root_path

Defined in:
lib/deploygate/xcode/ios.rb

.project_root_path(path) ⇒ String

Parameters:

  • path (String)

Returns:

  • (String)


94
95
96
97
98
99
100
# File 'lib/deploygate/xcode/ios.rb', line 94

def project_root_path(path)
  result = path
  if workspace?(path) || project?(path)
    result = project_root_path(File.dirname(path))
  end
  result
end