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.34.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.34.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.34.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.34.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.33.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.33.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.33.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.33.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.32.1 lib/puppet/file_serving/mount/tasks.rb
puppet-7.32.1-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.32.1-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.32.1-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.31.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.31.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.31.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.31.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.30.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.30.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.30.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.30.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb