Sha256: 19fac8923e41187a55fae22ccb771332bc56e038f3c8bbdf9f5f859e967fbf01

Contents?: true

Size: 914 Bytes

Versions: 21

Compression:

Stored size: 914 Bytes

Contents

#
#  Created by Luke Kanies on 2007-10-16.
#  Copyright (c) 2007. All rights reserved.

require 'puppet/network/authstore'
require 'puppet/util/logging'
require 'puppet/util/cacher'
require 'puppet/file_serving'
require 'puppet/file_serving/metadata'
require 'puppet/file_serving/content'

# Broker access to the filesystem, converting local URIs into metadata
# or content objects.
class Puppet::FileServing::Mount < Puppet::Network::AuthStore
  include Puppet::Util::Logging

  attr_reader :name

  def find(path, options)
    raise NotImplementedError
  end

  # Create our object.  It must have a name.
  def initialize(name)
    unless name =~ %r{^[-\w]+$}
      raise ArgumentError, "Invalid mount name format '#{name}'"
    end
    @name = name

    super()
  end

  def search(path, options)
    raise NotImplementedError
  end

  def to_s
    "mount[#{@name}]"
  end

  # A noop.
  def validate
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
puppet-2.6.18 lib/puppet/file_serving/mount.rb
puppet-2.6.17 lib/puppet/file_serving/mount.rb
puppet-2.6.16 lib/puppet/file_serving/mount.rb
puppet-2.6.15 lib/puppet/file_serving/mount.rb
puppet-2.6.14 lib/puppet/file_serving/mount.rb
puppet-2.6.13 lib/puppet/file_serving/mount.rb
puppet-2.6.12 lib/puppet/file_serving/mount.rb
puppet-2.6.11 lib/puppet/file_serving/mount.rb
puppet-2.6.10 lib/puppet/file_serving/mount.rb
puppet-2.7.3 lib/puppet/file_serving/mount.rb
puppet-2.7.1 lib/puppet/file_serving/mount.rb
puppet-2.6.9 lib/puppet/file_serving/mount.rb
puppet-2.6.8 lib/puppet/file_serving/mount.rb
puppet-2.6.7 lib/puppet/file_serving/mount.rb
puppet-2.6.6 lib/puppet/file_serving/mount.rb
puppet-2.6.5 lib/puppet/file_serving/mount.rb
puppet-2.6.4 lib/puppet/file_serving/mount.rb
puppet-2.6.3 lib/puppet/file_serving/mount.rb
puppet-2.6.2 lib/puppet/file_serving/mount.rb
puppet-2.6.1 lib/puppet/file_serving/mount.rb