Sha256: c4f4c8745cbbb661321b1e6923bf32b10b7fb8683c6f88f71eaa69c92a12c490

Contents?: true

Size: 464 Bytes

Versions: 235

Compression:

Stored size: 464 Bytes

Contents

require '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)
    return nil unless mod = request.environment.module(module_name)

    mod.task_file(task_path)
  end

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

  def valid?
    true
  end
end

Version data entries

235 entries across 235 versions & 2 rubygems

Version Path
puppet-6.0.7 lib/puppet/file_serving/mount/tasks.rb
puppet-6.0.7-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-6.0.7-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-6.0.7-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-5.5.12 lib/puppet/file_serving/mount/tasks.rb
puppet-5.5.12-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-5.5.12-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-5.5.12-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-6.3.0 lib/puppet/file_serving/mount/tasks.rb
puppet-6.3.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-6.3.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-6.3.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-6.2.0 lib/puppet/file_serving/mount/tasks.rb
puppet-6.2.0-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-6.2.0-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-6.2.0-universal-darwin lib/puppet/file_serving/mount/tasks.rb
puppet-6.0.5 lib/puppet/file_serving/mount/tasks.rb
puppet-6.0.5-x86-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-6.0.5-x64-mingw32 lib/puppet/file_serving/mount/tasks.rb
puppet-6.0.5-universal-darwin lib/puppet/file_serving/mount/tasks.rb