class StructCore::Processor::SchemeProfileActionComponent

Public Instance Methods

process(action, action_dsl, targets = nil) click to toggle source
# File lib/spec/processor/scheme_profile_action.rb, line 8
def process(action, action_dsl, targets = nil)
        output = nil

        output = process_xc_action action, action_dsl if structure == :spec
        output = process_spec_action action, action_dsl, targets if structure == :xcodeproj && !targets.nil?

        output
end
process_spec_action(action, action_dsl, targets) click to toggle source

@param action [StructCore::Specfile::Scheme::ProfileAction] @param action_dsl [XCScheme::ProfileAction] @param targets [Array<StructCore::Specfile::Target>]

# File lib/spec/processor/scheme_profile_action.rb, line 22
def process_spec_action(action, action_dsl, targets)
        runnable = nil
        target = targets.find { |t| t.name == action.target_name }
        runnable = Xcodeproj::XCScheme::BuildableProductRunnable.new target unless target.nil?

        action_dsl.should_use_launch_scheme_args_env = action.inherit_environment
        action_dsl.buildable_product_runnable = runnable unless runnable.nil?
        action_dsl.build_configuration = action.build_configuration unless action.build_configuration.nil?

        action_dsl
end
process_xc_action(action, action_dsl) click to toggle source
# File lib/spec/processor/scheme_profile_action.rb, line 17
def process_xc_action(action, action_dsl) end