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.2.18 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.17 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.16 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.15 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.14 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.13 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.12 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.11 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.10 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.9 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.8 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.7 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.6 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.5 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.4 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.3 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.2 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.1 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.2.0 lib/MiqContainerGroup/MiqContainerGroup.rb
manageiq-smartstate-0.1.6 lib/MiqContainerGroup/MiqContainerGroup.rb