Sha256: 9f6c303db8ec872a1cb8b780631b94f323145e4a95cbb22e7ae9581ad3ec97e3

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

module Conjur::DSL2::Types
  class Create < Base
    attribute :record
    
    def to_s
      messages = [ "Create #{record}" ]
      if record.resource?
        (record.annotations||{}).each do |k,v|
          messages.push "  Set annotation '#{k}'"
        end
      end
      messages.join("\n")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
conjur-asset-dsl2-0.4.4 lib/conjur/dsl2/types/create.rb
conjur-asset-dsl2-0.4.3 lib/conjur/dsl2/types/create.rb
conjur-asset-dsl2-0.4.2 lib/conjur/dsl2/types/create.rb
conjur-asset-dsl2-0.3.2 lib/conjur/dsl2/types/create.rb
conjur-asset-dsl2-0.3.1 lib/conjur/dsl2/types/create.rb
conjur-asset-dsl2-0.3.0 lib/conjur/dsl2/types/create.rb