Sha256: 0ad8a51b6921e48e16428dd5adaa6f9eeda66f8bcec66d4f117ec64a37abca0f

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

# Implement shutdown actions, tidy up the DB
at_exit do
  puts '-----------------------------------------------', ''
  puts 'Cleaning up...'

  # delete the SSHHandler generated files
  puts '... delete SSH files ...'
  nucleus_config.ssh.handler.cleanup if nucleus_config.key?(:ssh) && nucleus_config.ssh.key?(:handler)

  puts '... done!'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nucleus-0.3.1 lib/nucleus/scripts/shutdown.rb
nucleus-0.2.0 lib/nucleus/scripts/shutdown.rb
nucleus-0.1.0 lib/nucleus/scripts/shutdown.rb