cryostasis

Version, currently 0.9.01 version
  • 0.9.0latestJan 10, 2022

github.com/jwaldrip/cryostasis

No description declared in shard.yml.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  cryostasis:
    github: jwaldrip/cryostasis
    version: ~> 0.9.0

Then run:

shards install

shard.yml

Crystal
~> 1.0
License
MIT
Author
jwaldrip

Dependencies

This version declares no dependencies.

README

Cryostasis

Cryostasis allows you to preserve files into the crystal binary. Upon launch of the app, the files will be restored to their location relative to the executable. This allows you to access the files in a standard crystal way and does not keep the files in memory for longer than they need to be.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      cryostasis:
        github: jwaldrip/cryostasis
  2. Run shards install

Usage

require "cryostasis"

Cryostasis.preserve("glob/pattern/of/files/**")

Contributing

  1. Fork it (https://github.com/jwaldrip/cyrostasis/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

Contributors