class Chef::Resource::ScalewayVolume

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/chef/resource/scaleway_volume.rb, line 6
def initialize(*args)
  super
  @driver = run_context.chef_provisioning.current_driver
  @chef_server = run_context.cheffish.current_chef_server
end

Public Instance Methods

add_volume_options(options) click to toggle source
# File lib/chef/resource/scaleway_volume.rb, line 20
def add_volume_options(options)
  @volume_options = if @volume_options
                      Cheffish::MergedConfig.new(options, @volume_options)
                    else
                      options
                    end
end
load_prior_resource(*_args) click to toggle source

We are not interested in Chef's cloning behavior here.

# File lib/chef/resource/scaleway_volume.rb, line 29
def load_prior_resource(*_args)
  Chef::Log.debug("Overloading #{resource_name}.load_prior_resource with NOOP")
end