Sha256: 8f7d6fd295004aa4bfed0760697a107e68daf6a0b7980ec12860f6c5f45d5562
Contents?: true
Size: 823 Bytes
Versions: 9
Compression:
Stored size: 823 Bytes
Contents
require 'chef/provisioning' class Chef::Resource::ScalewayVolume < Chef::Resource::LWRPBase self.resource_name = 'scaleway_volume' def initialize(*args) super @driver = run_context.chef_provisioning.current_driver @chef_server = run_context.cheffish.current_chef_server end actions :create, :destroy, :nothing default_action :create attribute :id attribute :chef_server attribute :driver attribute :volume_options def add_volume_options(options) if @volume_options @volume_options = Cheffish::MergedConfig.new(options, @volume_options) else @volume_options = options end end # We are not interested in Chef's cloning behavior here. def load_prior_resource(*args) Chef::Log.debug("Overloading #{resource_name}.load_prior_resource with NOOP") end end
Version data entries
9 entries across 9 versions & 1 rubygems