Class: Frank::Cucumber::XCode4Project
- Inherits:
-
Object
- Object
- Frank::Cucumber::XCode4Project
- Defined in:
- lib/frank-cucumber/app_bundle_locator.rb
Instance Method Summary collapse
- #available_app_bundles ⇒ Object
- #derived_name ⇒ Object
-
#initialize(workspace_path, derived_dir) ⇒ XCode4Project
constructor
A new instance of XCode4Project.
- #project_name ⇒ Object
- #workspace_dir ⇒ Object
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_bundles ⇒ Object
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_name ⇒ Object
7 8 9 |
# File 'lib/frank-cucumber/app_bundle_locator.rb', line 7 def derived_name File.basename( @derived_dir ) end |
#project_name ⇒ Object
11 12 13 |
# File 'lib/frank-cucumber/app_bundle_locator.rb', line 11 def project_name derived_name.split('-')[0] end |
#workspace_dir ⇒ Object
15 16 17 |
# File 'lib/frank-cucumber/app_bundle_locator.rb', line 15 def workspace_dir File.dirname( @workspace_path ) end |