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
- #extensions ⇒ Object
- #force_polling? ⇒ Boolean
- #full_suite? ⇒ Boolean
- #help? ⇒ Boolean
-
#initialize(args = []) ⇒ Options
constructor
A new instance of Options.
- #merge(options = []) ⇒ Object
- #notify? ⇒ Boolean
- #version? ⇒ Boolean
- #watcher ⇒ Object
Constructor Details
#initialize(args = []) ⇒ Options
Returns a new instance of Options.
138 139 140 |
# File 'lib/retest/options.rb', line 138 def initialize(args = []) self.args = args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
132 133 134 |
# File 'lib/retest/options.rb', line 132 def args @args end |
Class Method Details
.command(args) ⇒ Object
134 135 136 |
# File 'lib/retest/options.rb', line 134 def self.command(args) new(args).command end |
Instance Method Details
#extensions ⇒ Object
167 168 169 |
# File 'lib/retest/options.rb', line 167 def extensions params[:exts] end |
#force_polling? ⇒ Boolean
163 164 165 |
# File 'lib/retest/options.rb', line 163 def force_polling? params[:polling] end |
#full_suite? ⇒ Boolean
155 156 157 |
# File 'lib/retest/options.rb', line 155 def full_suite? params[:all] end |
#help? ⇒ Boolean
147 148 149 |
# File 'lib/retest/options.rb', line 147 def help? params[:help] end |
#merge(options = []) ⇒ Object
175 176 177 |
# File 'lib/retest/options.rb', line 175 def merge( = []) self.class.new(@args.dup.concat()) end |
#notify? ⇒ Boolean
159 160 161 |
# File 'lib/retest/options.rb', line 159 def notify? params[:notify] end |
#version? ⇒ Boolean
151 152 153 |
# File 'lib/retest/options.rb', line 151 def version? params[:version] end |
#watcher ⇒ Object
171 172 173 |
# File 'lib/retest/options.rb', line 171 def watcher params[:watcher] || :installed end |