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.



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

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

Instance Attribute Details

#argsObject

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

#extensionsObject



167
168
169
# File 'lib/retest/options.rb', line 167

def extensions
  params[:exts]
end

#force_polling?Boolean

Returns:

  • (Boolean)


163
164
165
# File 'lib/retest/options.rb', line 163

def force_polling?
  params[:polling]
end

#full_suite?Boolean

Returns:

  • (Boolean)


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

def full_suite?
  params[:all]
end

#help?Boolean

Returns:

  • (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(options = [])
  self.class.new(@args.dup.concat(options))
end

#notify?Boolean

Returns:

  • (Boolean)


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

def notify?
  params[:notify]
end

#version?Boolean

Returns:

  • (Boolean)


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

def version?
  params[:version]
end

#watcherObject



171
172
173
# File 'lib/retest/options.rb', line 171

def watcher
  params[:watcher] || :installed
end