Module: Conjur::Exists
Instance Method Summary collapse
Instance Method Details
#exists?(options = {}) ⇒ Boolean
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/conjur/exists.rb', line 23 def exists?( = {}) begin self.head() true rescue RestClient::Forbidden true rescue RestClient::ResourceNotFound false end end |