lib/kuzushi.rb in kuzushi-0.0.13 vs lib/kuzushi.rb in kuzushi-0.0.14

- old
+ new

@@ -141,13 +141,13 @@ end def mount_options(m) o = [] o << m.options if m.options - o << "size=#{m.size}M" if m.size and s.media == "tmpfs" + o << "size=#{m.size}M" if m.size and m.media == "tmpfs" o << "mode=#{m.mode}" if m.mode o << "noatime" if o.empty? - o + o.join(",") end def handle_tmpfs(m) task "mount #{m.mount}" do shell "mkdir -p #{m.mount} && mount -o #{mount_options(m)} -t tmpfs tmpfs #{m.mount}" unless mounted?(m.mount)