Class: Retest::Options

Inherits:
Object
  • Object
show all
Includes:
TTY::Option
Defined in:
lib/retest/options.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = []) ⇒ Options

Returns a new instance of Options.



129
130
131
# File 'lib/retest/options.rb', line 129

def initialize(args = [])
  self.args = args
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



123
124
125
# File 'lib/retest/options.rb', line 123

def args
  @args
end

Class Method Details

.command(args) ⇒ Object



125
126
127
# File 'lib/retest/options.rb', line 125

def self.command(args)
  new(args).command
end

Instance Method Details

#extensionObject



158
159
160
# File 'lib/retest/options.rb', line 158

def extension
  Regexp.new(params[:ext])
end

#force_polling?Boolean

Returns:

  • (Boolean)


154
155
156
# File 'lib/retest/options.rb', line 154

def force_polling?
  params[:polling]
end

#full_suite?Boolean

Returns:

  • (Boolean)


146
147
148
# File 'lib/retest/options.rb', line 146

def full_suite?
  params[:all]
end

#help?Boolean

Returns:

  • (Boolean)


138
139
140
# File 'lib/retest/options.rb', line 138

def help?
  params[:help]
end

#notify?Boolean

Returns:

  • (Boolean)


150
151
152
# File 'lib/retest/options.rb', line 150

def notify?
  params[:notify]
end

#version?Boolean

Returns:

  • (Boolean)


142
143
144
# File 'lib/retest/options.rb', line 142

def version?
  params[:version]
end