Sha256: 28a4cc4a9694a0d5b240c1fc7d517fa8d2477ce63f97a7d85af8bbf441778d8e

Contents?: true

Size: 817 Bytes

Versions: 367

Compression:

Stored size: 817 Bytes

Contents

require 'puppet/network/authstore'
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 < 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}'") % { 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

367 entries across 367 versions & 2 rubygems

Version Path
puppet-6.29.0 lib/puppet/file_serving/mount.rb
puppet-6.29.0-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.29.0-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.29.0-universal-darwin lib/puppet/file_serving/mount.rb
puppet-6.28.0 lib/puppet/file_serving/mount.rb
puppet-6.28.0-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.28.0-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.28.0-universal-darwin lib/puppet/file_serving/mount.rb
puppet-6.27.0 lib/puppet/file_serving/mount.rb
puppet-6.27.0-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.27.0-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.27.0-universal-darwin lib/puppet/file_serving/mount.rb
puppet-6.26.0 lib/puppet/file_serving/mount.rb
puppet-6.26.0-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.26.0-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.26.0-universal-darwin lib/puppet/file_serving/mount.rb
puppet-6.25.1 lib/puppet/file_serving/mount.rb
puppet-6.25.1-x86-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.25.1-x64-mingw32 lib/puppet/file_serving/mount.rb
puppet-6.25.1-universal-darwin lib/puppet/file_serving/mount.rb