Class: Retest::Options
- Inherits:
-
Object
- Object
- Retest::Options
- Includes:
- TTY::Option
- Defined in:
- lib/retest/options.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Class Method Summary collapse
Instance Method Summary collapse
- #extension ⇒ Object
- #force_polling? ⇒ Boolean
- #full_suite? ⇒ Boolean
- #help? ⇒ Boolean
-
#initialize(args = []) ⇒ Options
constructor
A new instance of Options.
- #notify? ⇒ Boolean
- #version? ⇒ Boolean
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
#args ⇒ Object
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
#extension ⇒ Object
158 159 160 |
# File 'lib/retest/options.rb', line 158 def extension Regexp.new(params[:ext]) end |
#force_polling? ⇒ Boolean
154 155 156 |
# File 'lib/retest/options.rb', line 154 def force_polling? params[:polling] end |
#full_suite? ⇒ Boolean
146 147 148 |
# File 'lib/retest/options.rb', line 146 def full_suite? params[:all] end |
#help? ⇒ Boolean
138 139 140 |
# File 'lib/retest/options.rb', line 138 def help? params[:help] end |
#notify? ⇒ Boolean
150 151 152 |
# File 'lib/retest/options.rb', line 150 def notify? params[:notify] end |
#version? ⇒ Boolean
142 143 144 |
# File 'lib/retest/options.rb', line 142 def version? params[:version] end |