lib/gummi/index.rb in gummi-0.0.8 vs lib/gummi/index.rb in gummi-0.0.9
- old
+ new
@@ -17,10 +17,10 @@
# Return true if successful or already teared down.
#
# Raises NotImplementedError in production.
#
def teardown
- raise NotImplementedError unless Gummi.env == 'development' || Gummi.env == 'test'
+ raise NotImplementedError if Gummi.env == 'production'
response = client.indices.delete index: name
response.present?
rescue ::Elasticsearch::Transport::Transport::Errors::NotFound
true
end