libraries/resource_providers/image_streamer/api300/artifact_bundle_provider.rb
def upload
          raise "'#{@new_resource.file_path}' file does not exist." unless File.file?(@new_resource.file_path)
          return Chef::Log.info("#{@resource_name} #{@name} already exists in the appliance.") if @item.exists?
          @context.converge_by "Upload of #{@resource_name}'s '#{@name}' completed successfully" do
            @item.class.create_from_file(@item.client, @new_resource.file_path, @name)
          end
        end
# Call the 'add_<resource_type>' methods for based on the resource_type passed in to allow using names
# @param [String, Symbol] resource_type Type of resource to be loaded. e.g., :GoldenImage, :FCNetwork.
# @param [Array] resource_array Array containing the names of the resources and whether they are readonly or not. e.g., [{'DP', false}]
# @param [String] add_method String containing the name of the method which adds the arrays of resources to the artifact bundle.
Call the 'add_' methods for based on the resource_type passed in to allow using names
Call the ' add_ ' methods for based on the resource_type passed in to allow using names
def upload
          raise "'#{@new_resource.file_path}' file does not exist." unless File.file?(@new_resource.file_path)
          return Chef::Log.info("#{@resource_name} #{@name} already exists in the appliance.") if @item.exists?
          @context.converge_by "Upload of #{@resource_name}'s '#{@name}' completed successfully" do
            @item.class.create_from_file(@item.client, @new_resource.file_path, @name)
          end
        end
def upload raise "'#{@new_resource.file_path}' file does not exist." unless File . file? ( @new_resource . file_path ) return Chef :: Log . info ( "#{@resource_name} #{@name} already exists in the appliance." ) if @item . exists? @context . converge_by "Upload of #{@resource_name}'s '#{@name}' completed successfully" do @item . class . create_from_file ( @item . client , @new_resource . file_path , @name ) end end
Call the 'add_<resource_type>' methods for based on the resource_type passed in to allow using names
Call the ' add_<resource_type > ' methods for based on the resource_type passed in to allow using names
add_method String containing the name of the method which adds the arrays of resources to the artifact bundle.
add_method String containing the name of the method which adds the arrays of resources to the artifact bundle .