lib/cfoundry/v2/app.rb in cfoundry-0.3.60 vs lib/cfoundry/v2/app.rb in cfoundry-0.3.61

- old
+ new

@@ -328,10 +328,14 @@ def file(*path) Instance.new(self, "0", @client).file(*path) end + def stream_file(*path, &blk) + Instance.new(self, "0", @client).stream_file(*path, &blk) + end + class Instance attr_reader :app, :id def initialize(app, id, client, manifest = {}) @app = app @@ -386,9 +390,13 @@ end end def file(*path) @client.base.files(@app.guid, @id, *path) + end + + def stream_file(*path, &blk) + @client.base.stream_file(@app.guid, @id, *path, &blk) end end private