class StructCore::SpecSchemeLaunchDSL30X
Attributes
current_scope[RW]
launch_action[RW]
project[RW]
Public Class Methods
new()
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_launch_dsl_30X.rb, line 7 def initialize @current_scope = nil @launch_action = nil @project = nil end
Public Instance Methods
arguments(args = '')
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_launch_dsl_30X.rb, line 17 def arguments(args = '') return if args.nil? || !args.is_a?(String) @launch_action.arguments = args end
build_configuration(args = '')
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_launch_dsl_30X.rb, line 35 def build_configuration(args = '') return if args.nil? || !args.is_a?(String) @launch_action.build_configuration = args if @project.version.major == 2 && @project.version.minor >= 1 end
enable_location_simulation()
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_launch_dsl_30X.rb, line 13 def enable_location_simulation @launch_action.simulate_location = true end
environment(&block)
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_launch_dsl_30X.rb, line 22 def environment(&block) return if block.nil? dsl = StructCore::SpecSchemeLaunchEnvironmentDSL30X.new @current_scope = dsl dsl.environment = {} block.call @current_scope = nil @launch_action.environment = dsl.environment end
method_missing(method, *args, &block)
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_launch_dsl_30X.rb, line 44 def method_missing(method, *args, &block) return if @current_scope.nil? @current_scope.send(method, *args, &block) end
respond_to_missing?(_, _)
click to toggle source
# File lib/spec/builder/spec_builder_30X/spec_scheme_launch_dsl_30X.rb, line 40 def respond_to_missing?(_, _) true end