Project

tilt-fs

0.0
No commit activity in last 3 years
No release in over 3 years
The userspace file system based on Tilt.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7.0
~> 0.6.0
~> 2.0.0
~> 10.4.0
~> 3.0.0

Runtime

~> 1.1.0
~> 2.0
 Project Readme

TiltFs

Build Status

The user space file system based on Tilt.

Installation

$ gem install tilt-fs

Usage

1. Mount the filesystem

$ cd {some_dir}
$ mkdir _template
$ mkdir mnt
$ echo 'Hello, <%= name %>' > _template/hello.txt
$ tiltfs mnt/ _template/
-> Mount "_template" into "mnt"

2. Access to the files

$ cd {some_dir}
$ cat mnt/hello.txt
Hello, <%= name %>
$
$ mv _template/hello.txt _template/hello.txt.erb
$ ruby -r yaml -e 'puts({name: "world"}.to_yaml)' > .data.yaml
    - you can pass the data through ".data.yaml"
$ cat mnt/hello.txt
Hello, world
$
$ ruby -r yaml -e 'puts({name: "NEW WORLD"}.to_yaml)' > .data.yaml
$ cat mnt/hello.txt
Hello, NEW WORLD

3. Unmount the filesystem

$ cd {some_dir}
$ fusermount -u mnt/

Contributing

  1. Fork it ( https://github.com/sh19910711/ruby-tilt-fs/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request