Sha256: 51a50846e8b7a490f679289c420479f7008e63c2f6cee39edd6127de30965345

Contents?: true

Size: 611 Bytes

Versions: 10

Compression:

Stored size: 611 Bytes

Contents

module Xcake
  # This class is used to represent a shell script build phase
  #
  class ShellScriptBuildPhase < BuildPhase
    # The name of the build phase as shown in Xcode
    attr_accessor :name

    # String coataining the contents of the script to run
    attr_accessor :script

    def build_phase_type
      Xcodeproj::Project::Object::PBXShellScriptBuildPhase
    end

    def configure_native_build_phase(native_build_phase, _context)
      native_build_phase.name = name
      native_build_phase.shell_script = script.strip_heredoc
    end

    def to_s
      "BuildPhase<#{name}>"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
xcake-0.9.0 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.13 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.12 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.10 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.9 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.8 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.7 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.6 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.3 lib/xcake/dsl/build_phase/shell_script_build_phase.rb
xcake-0.8.1 lib/xcake/build_phase/shell_script_build_phase.rb