https://github.com/thbar/system_bang
Adding what I miss most in Ruby
https://github.com/thbar/system_bang
Last synced: 9 months ago
JSON representation
Adding what I miss most in Ruby
- Host: GitHub
- URL: https://github.com/thbar/system_bang
- Owner: thbar
- Created: 2017-05-23T09:09:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-04T15:33:41.000Z (about 9 years ago)
- Last Synced: 2025-01-22T18:11:23.285Z (over 1 year ago)
- Language: Ruby
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
A fail-fast version of `Kernel#system`, making sure processing stops if the command is not executed.
Usage:
```ruby
require 'system_bang'
SystemBang.system!("csvstats --names my_file.csv")
```
**Warning**: as it currently stands, the full command will be raised as a exception. Do not run with sensitive arguments for now (a later version may provide an alternate error message or sensitive data scrubbing).
Note: another implementation of this exists [here](https://github.com/ursm/system_bang)