class Chef::CookbookSiteStreamingUploader::StreamPart
Public Class Methods
new(stream, size)
click to toggle source
# File lib/chef/cookbook_site_streaming_uploader.rb, line 171 def initialize(stream, size) @stream, @size = stream, size end
Public Instance Methods
read(offset, how_much)
click to toggle source
read the specified amount from the stream
# File lib/chef/cookbook_site_streaming_uploader.rb, line 180 def read(offset, how_much) @stream.read(how_much) end
size()
click to toggle source
# File lib/chef/cookbook_site_streaming_uploader.rb, line 175 def size @size end