maxdemarzi/neography

View on GitHub
lib/neography/rest/clean.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Neography
  class Rest
    module Clean
      include Neography::Rest::Helpers

      def clean_database(sanity_check = "not_really")
        if sanity_check == "yes_i_really_want_to_clean_the_database"
          @connection.delete("/cleandb/secret-key")
          true
        else
          false
        end          
      end

    end
  end
end