Class: TestLauncher::CLI::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/test_launcher/cli/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Options

Returns a new instance of Options.

Raises:

  • (ArgumentError)


14
15
16
17
# File 'lib/test_launcher/cli/options.rb', line 14

def initialize(**args)
  raise ArgumentError.new("These keys are allowed and required: #{members}") unless args.keys.sort == members.sort
  args.each { |k, v| self[k] = v }
end

Instance Attribute Details

#disable_springObject

Returns the value of attribute disable_spring

Returns:

  • (Object)

    the current value of disable_spring



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def disable_spring
  @disable_spring
end

#example_nameObject

Returns the value of attribute example_name

Returns:

  • (Object)

    the current value of example_name



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def example_name
  @example_name
end

#force_springObject

Returns the value of attribute force_spring

Returns:

  • (Object)

    the current value of force_spring



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def force_spring
  @force_spring
end

#frameworksObject

Returns the value of attribute frameworks

Returns:

  • (Object)

    the current value of frameworks



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def frameworks
  @frameworks
end

#rerunObject

Returns the value of attribute rerun

Returns:

  • (Object)

    the current value of rerun



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def rerun
  @rerun
end

#run_allObject

Returns the value of attribute run_all

Returns:

  • (Object)

    the current value of run_all



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def run_all
  @run_all
end

#search_stringObject

Returns the value of attribute search_string

Returns:

  • (Object)

    the current value of search_string



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def search_string
  @search_string
end

#searcherObject

Returns the value of attribute searcher

Returns:

  • (Object)

    the current value of searcher



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def searcher
  @searcher
end

#shellObject

Returns the value of attribute shell

Returns:

  • (Object)

    the current value of shell



3
4
5
# File 'lib/test_launcher/cli/options.rb', line 3

def shell
  @shell
end