Class: Ring::SQA::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/ring/sqa/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



8
9
10
# File 'lib/ring/sqa/cli.rb', line 8

def opts
  @opts
end

Instance Method Details

#runObject



10
11
12
13
14
15
16
17
18
# File 'lib/ring/sqa/cli.rb', line 10

def run
  pid = $$
  puts "Running as pid: #{pid}"
  Process.daemon if @opts.daemonize?
  SQA.new
rescue Exception => error
  crash error
  raise
end