libraries/resource_providers/image_streamer/api300/artifact_bundle_provider.rb
def download
          raise "#{@resource_name} #{@new_resource.file_path} must be specified for this action" unless @new_resource.file_path
          @item.retrieve! || raise("#{@resource_name} '#{@name}' not found!")
          return Chef::Log.info("#{@resource_name} '#{@name}' file already exists in specified location.") if File.file?(@new_resource.file_path)
          @context.converge_by "Download #{@resource_name}'s '#{@name}' to #{@new_resource.file_path} completed successfully" do
            @item.download(@new_resource.file_path)
          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 download
          raise "#{@resource_name} #{@new_resource.file_path} must be specified for this action" unless @new_resource.file_path
          @item.retrieve! || raise("#{@resource_name} '#{@name}' not found!")
          return Chef::Log.info("#{@resource_name} '#{@name}' file already exists in specified location.") if File.file?(@new_resource.file_path)
          @context.converge_by "Download #{@resource_name}'s '#{@name}' to #{@new_resource.file_path} completed successfully" do
            @item.download(@new_resource.file_path)
          end
        end
def download raise "#{@resource_name} #{@new_resource.file_path} must be specified for this action" unless @new_resource . file_path @item . retrieve! || raise ( "#{@resource_name} '#{@name}' not found!" ) return Chef :: Log . info ( "#{@resource_name} '#{@name}' file already exists in specified location." ) if File . file? ( @new_resource . file_path ) @context . converge_by "Download #{@resource_name}'s '#{@name}' to #{@new_resource.file_path} completed successfully" do @item . download ( @new_resource . file_path ) 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 .