Class: U3d::MacInstallation
  
  
  
  Constant Summary
  
  Constants inherited
     from Installation
  Installation::NOT_PLAYBACKENGINE_PACKAGES, Installation::PACKAGE_ALIASES
  Instance Attribute Summary
  
  Attributes inherited from Installation
  #root_path
  
    
      Instance Method Summary
      collapse
    
    
  
  
  
  
  
  
  
  
  
  
  create, #do_not_move!, #do_not_move?, #initialize, #package_installed?
  
    Instance Method Details
    
      
  
  
    #build_number  ⇒ Object 
  
  
  
  
    | 
163
164
165 | # File 'lib/u3d/installation.rb', line 163
def build_number
  plist['UnityBuildNumber']
end | 
 
    
      
  
  
    #clean_install?  ⇒ Boolean 
  
  
  
  
    | 
209
210
211 | # File 'lib/u3d/installation.rb', line 209
def clean_install?
  do_not_move? || !(root_path =~ UNITY_DIR_CHECK).nil?
end | 
 
    
      
  
  
    #default_log_file  ⇒ Object 
  
  
  
  
    | 
167
168
169 | # File 'lib/u3d/installation.rb', line 167
def default_log_file
  "#{ENV['HOME']}/Library/Logs/Unity/Editor.log"
end | 
 
    
      
  
  
    #exe_path  ⇒ Object 
  
  
  
  
    | 
171
172
173 | # File 'lib/u3d/installation.rb', line 171
def exe_path
  "#{root_path}/Unity.app/Contents/MacOS/Unity"
end | 
 
    
      
  
  
    #module_name_pattern(module_name)  ⇒ Object 
  
  
  
  
    | 
196
197
198
199
200
201
202
203
204
205
206
207 | # File 'lib/u3d/installation.rb', line 196
def module_name_pattern(module_name)
  case module_name
  when 'Documentation'
    return "#{root_path}/Documentation/"
  when 'StandardAssets'
    return "#{root_path}/Standard Assets/"
  when 'MonoDevelop'
    return "#{root_path}/MonoDevelop.app/"
  else
    UI.crash! "No pattern is known for #{module_name} on Mac"
  end
end | 
 
    
      
    
      
  
  
    #path  ⇒ Object 
  
  
  
  
    | 
175
176
177
178
179 | # File 'lib/u3d/installation.rb', line 175
def path
  UI.deprecated("path is deprecated. Use root_path instead")
  return @path if @path
  "#{@root_path}/Unity.app"
end | 
 
    
      
  
  
    #version  ⇒ Object 
  
  
  
  
    | 
159
160
161 | # File 'lib/u3d/installation.rb', line 159
def version
  plist['CFBundleVersion']
end |