Sha256: 70239acf0b62348296c6050fcd0809217e0e1c324a5792b68e1857d66b325602

Contents?: true

Size: 501 Bytes

Versions: 120

Compression:

Stored size: 501 Bytes

Contents

require_relative '../../../puppet/file_serving/mount'

class Puppet::FileServing::Mount::Tasks < Puppet::FileServing::Mount
  def find(path, request)
    raise _("No task specified") if path.to_s.empty?
    module_name, task_path = path.split("/", 2)
    mod = request.environment.module(module_name)
    return nil unless mod

    mod.task_file(task_path)
  end

  def search(path, request)
    result = find(path, request)
    if result
      [result]
    end
  end

  def valid?
    true
  end
end

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
puppet-7.11.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.11.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.11.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.11.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.10.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.10.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.10.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.10.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.9.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.9.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.9.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.9.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.8.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.8.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.8.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.8.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.7.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.7.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.7.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.7.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb