class Chef::Knife::Core::CookbookSiteStreamingUploader::StreamPart
Public Class Methods
new(stream, size)
click to toggle source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 173 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/dpl/helper/cookbook_site_streaming_uploader.rb, line 182 def read(offset, how_much) @stream.read(how_much) end
size()
click to toggle source
# File lib/dpl/helper/cookbook_site_streaming_uploader.rb, line 177 def size @size end