Sha256: 6da31474742e6269cf4cbb301bb9478a25abbdad8a0587182d302c0ec46b0438
Contents?: true
Size: 550 Bytes
Versions: 5
Compression:
Stored size: 550 Bytes
Contents
module Conjur class Variable < RestClient::Resource include ActsAsResource include HasAttributes include Exists include HasId def add_value value log do |logger| logger << "Adding #{value} to variable #{id}" end invalidate do self['values'].post value: value end end def version_count self.attributes['versions'] end def value(version = nil) url = 'value' url << "?version=#{version}" if version self[url].get.body end end end
Version data entries
5 entries across 5 versions & 1 rubygems