summaryrefslogtreecommitdiffstats
path: root/ruby/examples/create_disk.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/examples/create_disk.rb')
-rw-r--r--ruby/examples/create_disk.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ruby/examples/create_disk.rb b/ruby/examples/create_disk.rb
index 4e42cf6a..026ea2e7 100644
--- a/ruby/examples/create_disk.rb
+++ b/ruby/examples/create_disk.rb
@@ -54,4 +54,7 @@ g.mkdir("/foo")
# the disk image.
g.upload("/etc/resolv.conf", "/foo/resolv.conf")
+# Note also that handles are automatically closed if they are
+# reaped by the garbage collector. You only need to call close
+# if you want to close the handle right away.
g.close()