Class: Frank::Cucumber::XCode4Project

Inherits:
Object
  • Object
show all
Defined in:
lib/frank-cucumber/app_bundle_locator.rb

Instance Method Summary collapse

Constructor Details

#initialize(workspace_path, derived_dir) ⇒ XCode4Project

Returns a new instance of XCode4Project.



3
4
5
# File 'lib/frank-cucumber/app_bundle_locator.rb', line 3

def initialize( workspace_path, derived_dir )
  @workspace_path, @derived_dir = workspace_path, derived_dir 
end

Instance Method Details

#available_app_bundlesObject



19
20
21
# File 'lib/frank-cucumber/app_bundle_locator.rb', line 19

def available_app_bundles
  Dir.glob( File.join( @derived_dir, "Build", "Products", "*", "*.app" ) )
end

#derived_nameObject



7
8
9
# File 'lib/frank-cucumber/app_bundle_locator.rb', line 7

def derived_name
  File.basename( @derived_dir )
end

#project_nameObject



11
12
13
# File 'lib/frank-cucumber/app_bundle_locator.rb', line 11

def project_name
  derived_name.split('-')[0]
end

#workspace_dirObject



15
16
17
# File 'lib/frank-cucumber/app_bundle_locator.rb', line 15

def workspace_dir
  File.dirname( @workspace_path )
end