# class Puppet::FileBucketFile::Selector

### Public Instance Methods

authorized?(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 39
    def authorized?(request)
      terminus = get_terminus(request)
      if terminus.respond_to?(:authorized?)
        terminus.authorized?(request)
      else
        true
      end
    end

destroy(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 35
    def destroy(request)
      get_terminus(request).destroy(request)
    end

find(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 23
    def find(request)
      get_terminus(request).find(request)
    end

get_terminus(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 15
    def get_terminus(request)
      indirection.terminus(select(request))
    end

head(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 19
    def head(request)
      get_terminus(request).head(request)
    end

save(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 27
    def save(request)
      get_terminus(request).save(request)
    end

search(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 31
    def search(request)
      get_terminus(request).search(request)
    end

select(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 7
    def select(request)
      if request.protocol == 'https'
        :rest
      else
        :file
      end
    end

validate_key(request) click to toggle source

    # File lib/puppet/indirector/file_bucket_file/selector.rb, line 48
    def validate_key(request)
      get_terminus(request).validate(request)
    end