Sha256: 24b26e329438b488081ed1e800095cc8c5e9abdf0b2826d7678b17b462e0cd56

Contents?: true

Size: 761 Bytes

Versions: 7

Compression:

Stored size: 761 Bytes

Contents

# frozen_string_literal: true

require 'chef/provisioning'
require 'chef/provisioning/vsphere_driver/driver'

# The main Chef class for all the Chef code!
class Chef
  # The main Chef module for the Domain Specialized Language
  module DSL
    # The main Chef module for the the Recipe in side of Chef's DSL
    module Recipe
      # Creates the url object for Chef-Provisioning to leverage.
      #
      # @param [Object] driver_options Used from the Chef Provisioning to connect
      # @param [Object] block TODO
      def with_vsphere_driver(driver_options, &block)
        url = ChefProvisioningVsphere::VsphereDriver.canonicalize_url(
          nil, driver_options
        )[0]
        with_driver url, driver_options, &block
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chef-provisioning-vsphere-2.2.2 lib/chef/provisioning/vsphere_driver.rb
chef-provisioning-vsphere-2.2.1 lib/chef/provisioning/vsphere_driver.rb
chef-provisioning-vsphere-2.2.0 lib/chef/provisioning/vsphere_driver.rb
chef-provisioning-vsphere-2.1.0 lib/chef/provisioning/vsphere_driver.rb
chef-provisioning-vsphere-2.0.10 lib/chef/provisioning/vsphere_driver.rb
chef-provisioning-vsphere-2.0.9 lib/chef/provisioning/vsphere_driver.rb
chef-provisioning-vsphere-2.0.8 lib/chef/provisioning/vsphere_driver.rb