Class: Yolo::Tasks::Ios::Build
- Defined in:
- lib/yolo/tasks/ios/build.rb
Overview
Executes all build related tasks
Instance Method Summary collapse
-
#build_opts_string(*additional_opts) ⇒ String
Overrides the superclass build_opts_string method and appends skip code sign command if debug confid is defined.
-
#define ⇒ Object
Defines rake tasks available to the Build class.
-
#scheme ⇒ String
Returns the build class’s scheme attribute, if no attribute is set then check for the scheme env var.
Methods inherited from BaseTask
Instance Method Details
#build_opts_string(*additional_opts) ⇒ String
Overrides the superclass build_opts_string method and appends skip code sign command if debug confid is defined
pipe appended if defined
19 20 21 22 23 24 25 |
# File 'lib/yolo/tasks/ios/build.rb', line 19 def build_opts_string(*additional_opts) = build_opts + additional_opts if configuration == "Debug" or configuration.nil? = << "CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED=NO" end return .compact.join(" ") end |
#define ⇒ Object
Defines rake tasks available to the Build class
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/yolo/tasks/ios/build.rb', line 45 def define super namespace :yolo do desc "Builds the specified scheme(s)." task :build do xcodebuild :clean xcodebuild :build end end end |
#scheme ⇒ String
Returns the build class’s scheme attribute, if no attribute is set then check for the scheme env var
32 33 34 35 36 37 38 39 40 |
# File 'lib/yolo/tasks/ios/build.rb', line 32 def scheme scheme = @scheme if !scheme scheme = ENV['YOLO_BUILD_SCHEME'] end return scheme end |