summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_bucket/file/indirection_hooks.rb
blob: 58c292745dafec1f4437d5eb11d6844158b6834f (plain)
1
2
3
4
5
6
7
8
9
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