class Xcodeproj::XCScheme::AbstractSchemeAction


that have a #build_configuration attribute
This abstract class aims to be the base class for every XxxAction class

def add_post_action(post_action)

Parameters:
  • post_action (ExecutionAction) --
def add_post_action(post_action)
  post_actions = @xml_element.elements['PostActions'] || @xml_element.add_element('PostActions')
  post_actions.add_element(post_action.xml_element)
end

def add_pre_action(pre_action)

Parameters:
  • pre_action (ExecutionAction) --
def add_pre_action(pre_action)
  pre_actions = @xml_element.elements['PreActions'] || @xml_element.add_element('PreActions')
  pre_actions.add_element(pre_action.xml_element)
end

def build_configuration

Returns:
  • (String) -
def build_configuration
  @xml_element.attributes['buildConfiguration']
end

def build_configuration=(config_name)

Parameters:
  • config_name (String) --
def build_configuration=(config_name)
  @xml_element.attributes['buildConfiguration'] = config_name
end

def post_actions

Returns:
  • (Array) -
def post_actions
  post_actions = @xml_element.elements['PostActions']
  return nil unless post_actions
  post_actions.get_elements('ExecutionAction').map do |entry_node|
    ExecutionAction.new(entry_node)
  end
end

def post_actions=(post_actions)

Parameters:
  • post_actions (Array) --
def post_actions=(post_actions)
  @xml_element.delete_element('PostActions')
  unless post_actions.empty?
    post_actions_element = @xml_element.add_element('PostActions')
    post_actions.each do |entry_node|
      post_actions_element.add_element(entry_node.xml_element)
    end
  end
  post_actions
end

def pre_actions

Returns:
  • (Array) -
def pre_actions
  pre_actions = @xml_element.elements['PreActions']
  return nil unless pre_actions
  pre_actions.get_elements('ExecutionAction').map do |entry_node|
    ExecutionAction.new(entry_node)
  end
end

def pre_actions=(pre_actions)

Parameters:
  • pre_actions (Array) --
def pre_actions=(pre_actions)
  @xml_element.delete_element('PreActions')
  unless pre_actions.empty?
    pre_actions_element = @xml_element.add_element('PreActions')
    pre_actions.each do |entry_node|
      pre_actions_element.add_element(entry_node.xml_element)
    end
  end
  pre_actions
end