Sha256: 3d636b01b97d075a285b0e645f1fbc06d78de13c043ebda3c8df24530c77d68d

Contents?: true

Size: 753 Bytes

Versions: 28

Compression:

Stored size: 753 Bytes

Contents

require 'puppet/util/logging'
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
  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}'") % { name: 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

28 entries across 28 versions & 1 rubygems

Version Path
puppet-7.6.1 lib/puppet/file_serving/mount.rb
puppet-7.6.1-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.6.1-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.6.1-universal-darwin lib/puppet/file_serving/mount.rb
puppet-7.5.0 lib/puppet/file_serving/mount.rb
puppet-7.5.0-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.5.0-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.5.0-universal-darwin lib/puppet/file_serving/mount.rb
puppet-7.4.1 lib/puppet/file_serving/mount.rb
puppet-7.4.1-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.4.1-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.4.1-universal-darwin lib/puppet/file_serving/mount.rb
puppet-7.4.0 lib/puppet/file_serving/mount.rb
puppet-7.4.0-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.4.0-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.4.0-universal-darwin lib/puppet/file_serving/mount.rb
puppet-7.3.0 lib/puppet/file_serving/mount.rb
puppet-7.3.0-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.3.0-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-7.3.0-universal-darwin lib/puppet/file_serving/mount.rb