Class: BitcoinTestnet::Stopper
- Inherits:
-
Object
- Object
- BitcoinTestnet::Stopper
- Defined in:
- lib/bitcoin_testnet/stopper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.stop ⇒ Object
4 5 6 |
# File 'lib/bitcoin_testnet/stopper.rb', line 4 def self.stop self.new.stop end |
Instance Method Details
#stop ⇒ Object
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 |