Skip to content

thbar/system_bang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

A fail-fast version of Kernel#system, making sure processing stops if the command is not executed.

Usage:

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

About

Adding what I miss most in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages