Pasu
Pasu is a command line interface for serving (and uploading) local files via HTTP.
Requirements
Ruby '~> 2.0'
Installation
$ gem install pasu
Usage
$ pasu
Options
Option | Description | Default |
---|---|---|
-v, --version | Print version. | |
-d, --directory DIRECTORY | Set the base directory for listing files. | pwd |
--no-recursion | Don't recursively list directories. | false |
--no-dotfiles | Don't list dotfiles. | false |
-u, --upload | Allow uploading of files. | false |
--basic-auth USER:PW | Only allowing requests with valid user/pw combination provided. | None |
-b, --bind HOST | Bind the server to the given host. | 0.0.0.0 |
-p, --port PORT | Bind the server to the given port. | 8080 |
-h, --help | Show help message. |
Contributing
- Fork it (https://github.com/tbuehlmann/pasu/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request