Sha256: 312989f1db6375f2a7ab6b982bf1cb4cedf82def68c2647c63ae02be30a0cab1

Contents?: true

Size: 828 Bytes

Versions: 66

Compression:

Stored size: 828 Bytes

Contents

require 'fs/MiqFS/modules/WebDAV'

class MiqContainerGroup
  attr_reader :uri, :http_options, :headers, :guest_os

  # http_options are in Net::HTTP format.
  def initialize(uri, http_options, headers, guest_os)
    @uri = uri
    unless http_options.kind_of?(Hash)
      # backward compatibility, 2nd param used to be verify_mode
      http_options = {:verify_mode => http_options}
    end
    @http_options = {:use_ssl => URI(uri).scheme == 'https'}.merge(http_options)
    @headers      = headers
    @guest_os     = guest_os
  end

  def verify_mode
    http_options[:verify_mode]
  end

  def rootTrees
    web_dav_ost = OpenStruct.new(
      :uri          => @uri,
      :http_options => @http_options,
      :headers      => @headers,
      :guest_os     => @guest_os
    )
    [MiqFS.new(WebDAV, web_dav_ost)]
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
manageiq-smartstate-0.10.1 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.10.0 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.9.0 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.8.1 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.8.0 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.7.0 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.6.2 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.5.10 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.3.10 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.6.1 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.3.9 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.6.0 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.5.9 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.5.8 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.3.8 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.5.7 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.3.7 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.5.6 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.3.6 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.5.5 lib/MiqContainerGroup/MiqContainerGroup.rb