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.15.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.15.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.15.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.15.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.14.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.14.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.14.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.14.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.13.1 lib/puppet/file_serving/mount/tasks.rb
puppet-7.13.1-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.13.1-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.13.1-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.12.1 lib/puppet/file_serving/mount/tasks.rb
puppet-7.12.1-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.12.1-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.12.1-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-7.12.0 lib/puppet/file_serving/mount/tasks.rb
puppet-7.12.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.12.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-7.12.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb