class Chef::Knife::Core::CookbookSiteStreamingUploader::StreamPart
Public Class Methods
Source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 173 def initialize(stream, size) @stream, @size = stream, size end
Public Instance Methods
Source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 182 def read(offset, how_much) @stream.read(how_much) end
read the specified amount from the stream
Source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 177 def size @size end