Class: DerailSpecs::Boot

Inherits:
Object
  • Object
show all
Defined in:
lib/derail_specs/boot.rb

Instance Method Summary collapse

Instance Method Details

#runObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/derail_specs/boot.rb', line 5

def run
  DerailSpecs.hooks.run(:before_server_start)
  Transaction.begin
  set_exit_hooks!

  Server.new.tap(&:boot)

  if command.present?
    puts "Run: #{command}"
    exit system(command)
  else
    loop { sleep 60 }
  end
end