Sha256: fce6aec20a09c33e639f94c31c3c60082141fcfbb009f8cc301fc22a54cd3691

Contents?: true

Size: 195 Bytes

Versions: 12

Compression:

Stored size: 195 Bytes

Contents

module Conjur
  module Exists
    def exists?(options = {})
      begin
        self.head(options)
        true
      rescue RestClient::ResourceNotFound
        false
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
conjur-api-2.2.1 lib/conjur/exists.rb
conjur-api-2.1.8 lib/conjur/exists.rb
conjur-api-2.1.7 lib/conjur/exists.rb
conjur-api-2.1.6 lib/conjur/exists.rb
conjur-api-2.1.5 lib/conjur/exists.rb
conjur-api-2.1.4 lib/conjur/exists.rb
conjur-api-2.1.3 lib/conjur/exists.rb
conjur-api-2.1.2 lib/conjur/exists.rb
conjur-api-2.1.1 lib/conjur/exists.rb
conjur-api-2.1.0 lib/conjur/exists.rb
conjur-api-2.0.1 lib/conjur/exists.rb
conjur-api-2.0.0 lib/conjur/exists.rb