Class: Xcodeproj::Project::Object::PBXShellScriptBuildPhase
- Inherits:
-
AbstractBuildPhase
- Object
- AbstractObject
- AbstractBuildPhase
- Xcodeproj::Project::Object::PBXShellScriptBuildPhase
- Defined in:
- lib/xcodeproj/project/object/build_phase.rb
Overview
This phase can appear multiple times in a target.
A phase responsible of running a shell script (aka ‘Run Script`).
Attributes collapse
-
#dependency_file ⇒ String
The discovered dependency file to use.
-
#input_file_list_paths ⇒ Array<String>
An array of input file list paths of the script.
-
#input_paths ⇒ Array<String>
An array of the paths to pass to the script.
-
#name ⇒ String
The name of the build phase.
-
#output_file_list_paths ⇒ Array<String>
An array of output file list paths of the script.
-
#output_paths ⇒ Array<String>
An array of output paths of the script.
-
#shell_path ⇒ String
The path to the script interpreter.
-
#shell_script ⇒ String
The actual script to perform.
-
#show_env_vars_in_log ⇒ String
Whether or not the ENV variables should be shown in the build log.
Attributes inherited from AbstractBuildPhase
#always_out_of_date, #build_action_mask, #comments, #run_only_for_deployment_postprocessing
Attributes inherited from AbstractObject
Attributes collapse
-
#pretty_print ⇒ Hash{String => Hash}
A hash suitable to display the build phase to the user.
Methods inherited from AbstractBuildPhase
#add_file_reference, #ascii_plist_annotation, #build_file, #clear, #display_name, #file_display_names, #files, #files_references, #include?, #remove_build_file, #remove_file_reference, #sort
Methods inherited from AbstractObject
#<=>, #==, #ascii_plist_annotation, #display_name, #inspect, isa, #nested_object_for_hash, #remove_from_project, #sort, #sort_recursively, #to_ascii_plist, #to_hash
Instance Attribute Details
#dependency_file ⇒ String
Returns the discovered dependency file to use.
337 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 337 attribute :dependency_file, String |
#input_file_list_paths ⇒ Array<String>
Returns an array of input file list paths of the script.
302 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 302 attribute :input_file_list_paths, Array, [] |
#input_paths ⇒ Array<String>
Returns an array of the paths to pass to the script.
295 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 295 attribute :input_paths, Array, [] |
#name ⇒ String
Returns the name of the build phase.
288 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 288 attribute :name, String |
#output_file_list_paths ⇒ Array<String>
Returns an array of output file list paths of the script.
316 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 316 attribute :output_file_list_paths, Array, [] |
#output_paths ⇒ Array<String>
Returns an array of output paths of the script.
309 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 309 attribute :output_paths, Array, [] |
#shell_path ⇒ String
Defaults to ‘/bin/sh`.
Returns the path to the script interpreter.
322 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 322 attribute :shell_path, String, '/bin/sh' |
#shell_script ⇒ String
Defaults to a comment string.
Returns the actual script to perform.
328 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 328 attribute :shell_script, String, "# Type a script or drag a script file from your workspace to insert its path.\n" |
#show_env_vars_in_log ⇒ String
Returns whether or not the ENV variables should be shown in the build log.
333 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 333 attribute :show_env_vars_in_log, String |
Instance Method Details
#pretty_print ⇒ Hash{String => Hash}
Returns A hash suitable to display the build phase to the user.
342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/xcodeproj/project/object/build_phase.rb', line 342 def pretty_print { display_name => { 'Input File List Paths' => input_file_list_paths || [], 'Input Paths' => input_paths || [], 'Output File List Paths' => output_file_list_paths || [], 'Output Paths' => output_paths || [], 'Shell Path' => shell_path, 'Shell Script' => shell_script, }, } end |