Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dekz/fileman
https://github.com/dekz/fileman
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/dekz/fileman
- Owner: dekz
- License: mit
- Created: 2014-02-14T05:44:18.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-14T09:54:58.000Z (almost 11 years ago)
- Last Synced: 2024-04-17T02:56:43.378Z (10 months ago)
- Language: Ruby
- Size: 185 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Fileman
[![Build Status](https://travis-ci.org/dekz/fileman.png?branch=master)](https://travis-ci.org/dekz/fileman) [![Coverage Status](https://coveralls.io/repos/dekz/fileman/badge.png?branch=master)](https://coveralls.io/r/dekz/fileman?branch=master)a DSL for file tasks and file manipulations
## Installation
Add this line to your application's Gemfile:
gem 'fileman'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fileman
## Usage
```ruby
file '/tmp/test' do
contents 'test file'
user 'root'
end
# File is owned by root and contains 'test file'file '/tmp/test' do
contents << 'here'
user 'ubuntu'
group 'users'
permissions 0755
end
# File is owned by ubuntu and contains 'test file here'chown '/tmp/test', user: 'root'
# File is owned by rootfile '/home/root/.ssh/id_rsa' do
permissions 400
end```
## Contributing
1. Fork it ( http://github.com/dekz/fileman/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 new Pull Request[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/dekz/fileman/trend.png)](https://bitdeli.com/free "Bitdeli Badge")