Class: XCJobs::Xcodebuild
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- XCJobs::Xcodebuild
- Includes:
- Rake::DSL
- Defined in:
- lib/xcjobs/xcodebuild.rb
Instance Attribute Summary collapse
-
#build_dir ⇒ Object
Returns the value of attribute build_dir.
-
#configuration ⇒ Object
Returns the value of attribute configuration.
-
#coverage ⇒ Object
Returns the value of attribute coverage.
-
#description ⇒ Object
Returns the value of attribute description.
-
#destinations ⇒ Object
readonly
Returns the value of attribute destinations.
-
#formatter ⇒ Object
Returns the value of attribute formatter.
-
#hide_shell_script_environment ⇒ Object
Returns the value of attribute hide_shell_script_environment.
-
#name ⇒ Object
Returns the value of attribute name.
-
#project ⇒ Object
Returns the value of attribute project.
-
#provisioning_profile ⇒ Object
Returns the value of attribute provisioning_profile.
-
#provisioning_profile_name ⇒ Object
readonly
Returns the value of attribute provisioning_profile_name.
-
#provisioning_profile_uuid ⇒ Object
readonly
Returns the value of attribute provisioning_profile_uuid.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
-
#sdk ⇒ Object
Returns the value of attribute sdk.
-
#signing_identity ⇒ Object
Returns the value of attribute signing_identity.
-
#target ⇒ Object
Returns the value of attribute target.
-
#unsetenv_others ⇒ Object
Returns the value of attribute unsetenv_others.
-
#workspace ⇒ Object
Returns the value of attribute workspace.
Instance Method Summary collapse
- #add_build_option(option, value) ⇒ Object
- #add_build_setting(setting, value) ⇒ Object
- #add_destination(destination) ⇒ Object
- #add_only_testing(only_testing) ⇒ Object
- #add_skip_testing(skip_testing) ⇒ Object
- #after_action(&block) ⇒ Object
- #before_action(&block) ⇒ Object
- #coverage_enabled ⇒ Object
-
#initialize(name) ⇒ Xcodebuild
constructor
A new instance of Xcodebuild.
Constructor Details
#initialize(name) ⇒ Xcodebuild
Returns a new instance of Xcodebuild.
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/xcjobs/xcodebuild.rb', line 33 def initialize(name) $stdout.sync = $stderr.sync = true @name = name @destinations = [] @only_testings = [] @skip_testings = [] @build_options = {} @build_settings = {} @unsetenv_others = false @description = Rake.application.last_description # nil or given from "desc" end |
Instance Attribute Details
#build_dir ⇒ Object
Returns the value of attribute build_dir.
22 23 24 |
# File 'lib/xcjobs/xcodebuild.rb', line 22 def build_dir @build_dir end |
#configuration ⇒ Object
Returns the value of attribute configuration.
19 20 21 |
# File 'lib/xcjobs/xcodebuild.rb', line 19 def configuration @configuration end |
#coverage ⇒ Object
Returns the value of attribute coverage.
23 24 25 |
# File 'lib/xcjobs/xcodebuild.rb', line 23 def coverage @coverage end |
#description ⇒ Object
Returns the value of attribute description.
13 14 15 |
# File 'lib/xcjobs/xcodebuild.rb', line 13 def description @description end |
#destinations ⇒ Object (readonly)
Returns the value of attribute destinations.
27 28 29 |
# File 'lib/xcjobs/xcodebuild.rb', line 27 def destinations @destinations end |
#formatter ⇒ Object
Returns the value of attribute formatter.
24 25 26 |
# File 'lib/xcjobs/xcodebuild.rb', line 24 def formatter @formatter end |
#hide_shell_script_environment ⇒ Object
Returns the value of attribute hide_shell_script_environment.
25 26 27 |
# File 'lib/xcjobs/xcodebuild.rb', line 25 def hide_shell_script_environment @hide_shell_script_environment end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/xcjobs/xcodebuild.rb', line 12 def name @name end |
#project ⇒ Object
Returns the value of attribute project.
14 15 16 |
# File 'lib/xcjobs/xcodebuild.rb', line 14 def project @project end |
#provisioning_profile ⇒ Object
Returns the value of attribute provisioning_profile.
21 22 23 |
# File 'lib/xcjobs/xcodebuild.rb', line 21 def provisioning_profile @provisioning_profile end |
#provisioning_profile_name ⇒ Object (readonly)
Returns the value of attribute provisioning_profile_name.
28 29 30 |
# File 'lib/xcjobs/xcodebuild.rb', line 28 def provisioning_profile_name @provisioning_profile_name end |
#provisioning_profile_uuid ⇒ Object (readonly)
Returns the value of attribute provisioning_profile_uuid.
29 30 31 |
# File 'lib/xcjobs/xcodebuild.rb', line 29 def provisioning_profile_uuid @provisioning_profile_uuid end |
#scheme ⇒ Object
Returns the value of attribute scheme.
17 18 19 |
# File 'lib/xcjobs/xcodebuild.rb', line 17 def scheme @scheme end |
#sdk ⇒ Object
Returns the value of attribute sdk.
18 19 20 |
# File 'lib/xcjobs/xcodebuild.rb', line 18 def sdk @sdk end |
#signing_identity ⇒ Object
Returns the value of attribute signing_identity.
20 21 22 |
# File 'lib/xcjobs/xcodebuild.rb', line 20 def signing_identity @signing_identity end |
#target ⇒ Object
Returns the value of attribute target.
15 16 17 |
# File 'lib/xcjobs/xcodebuild.rb', line 15 def target @target end |
#unsetenv_others ⇒ Object
Returns the value of attribute unsetenv_others.
31 32 33 |
# File 'lib/xcjobs/xcodebuild.rb', line 31 def unsetenv_others @unsetenv_others end |
#workspace ⇒ Object
Returns the value of attribute workspace.
16 17 18 |
# File 'lib/xcjobs/xcodebuild.rb', line 16 def workspace @workspace end |
Instance Method Details
#add_build_option(option, value) ⇒ Object
87 88 89 |
# File 'lib/xcjobs/xcodebuild.rb', line 87 def add_build_option(option, value) @build_options[option] = value end |
#add_build_setting(setting, value) ⇒ Object
91 92 93 |
# File 'lib/xcjobs/xcodebuild.rb', line 91 def add_build_setting(setting, value) @build_settings[setting] = value end |
#add_destination(destination) ⇒ Object
75 76 77 |
# File 'lib/xcjobs/xcodebuild.rb', line 75 def add_destination(destination) @destinations << destination end |
#add_only_testing(only_testing) ⇒ Object
79 80 81 |
# File 'lib/xcjobs/xcodebuild.rb', line 79 def add_only_testing(only_testing) @only_testings << only_testing end |
#add_skip_testing(skip_testing) ⇒ Object
83 84 85 |
# File 'lib/xcjobs/xcodebuild.rb', line 83 def add_skip_testing(skip_testing) @skip_testings << skip_testing end |
#after_action(&block) ⇒ Object
66 67 68 |
# File 'lib/xcjobs/xcodebuild.rb', line 66 def after_action(&block) @after_action = block end |
#before_action(&block) ⇒ Object
62 63 64 |
# File 'lib/xcjobs/xcodebuild.rb', line 62 def before_action(&block) @before_action = block end |
#coverage_enabled ⇒ Object
58 59 60 |
# File 'lib/xcjobs/xcodebuild.rb', line 58 def coverage_enabled @coverage end |