Class: BitcoinTestnet::Stopper

Inherits:
Object
  • Object
show all
Defined in:
lib/bitcoin_testnet/stopper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.stopObject



4
5
6
# File 'lib/bitcoin_testnet/stopper.rb', line 4

def self.stop
  self.new.stop
end

Instance Method Details

#stopObject



8
9
10
11
12
13
# File 'lib/bitcoin_testnet/stopper.rb', line 8

def stop
  kill_bitcoind if Detector.exists?
  Wait.new.until { !Detector.exists? }
  fail "Looks like it didn't stop" if Detector.exists?
  Executor.execute "make clean"
end