Sha256: 4f94065cf6a1a9bbf4fcfe3ddee29bfe963731f145f01a21c70ef89d23f34ba5

Contents?: true

Size: 313 Bytes

Versions: 40

Compression:

Stored size: 313 Bytes

Contents

require 'puppet/file_bucket/file'

# This module is used to pick the appropriate terminus
# in filebucket indirections.
module Puppet::FileBucket::File::IndirectionHooks
  def select_terminus(request)
    return(request.protocol == 'https' ? :rest : Puppet::FileBucket::File.indirection.terminus_class)
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.7.17 lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.7.16 lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.7.14 lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.6.16 lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.7.13 lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.6.15 lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.9.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.8.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.8.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.7.12 lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.7.11 lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.6.14 lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.7.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.6.1 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
supply_drop-0.6.0 examples/vendored-puppet/vendor/puppet-2.7.8/lib/puppet/file_bucket/file/indirection_hooks.rb
puppet-2.6.13 lib/puppet/file_bucket/file/indirection_hooks.rb