Sha256: a47db08d4a1a29f6df2952eeea35e2e6dbd118e7a843bd8dfc8cc90bcc65f76c

Contents?: true

Size: 505 Bytes

Versions: 3

Compression:

Stored size: 505 Bytes

Contents

require 'fog/core/model'
require 'fog/artifactory/models/storage/files'

module Fog
  module Storage
    class Artifactory
      class Directory < Fog::Model
        identity :key

        attribute :description
        attribute :url

        def destroy
          false
        end

        def files
          requires :key
          @files ||= Fog::Storage::Artifactory::Files.new(directory: self, service: service)
        end

        def save
          true
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-artifactory-0.3.0 lib/fog/artifactory/models/storage/directory.rb
fog-artifactory-0.2.0 lib/fog/artifactory/models/storage/directory.rb
fog-artifactory-0.1.0 lib/fog/artifactory/models/storage/directory.rb