rb-system-with-aliases - execute system commands with aliases
EXAMPLES
$ chruby --version
$ ruby -e "puts system('chruby --version 2>&1')"
sh: chruby: command not found
false
$ irb
> require 'system_with_aliases'
=> true
> SystemWithAliases::execute('chruby --version')
=> "chruby: 0.3.9\n"
$ system-with-aliases chruby --version
chruby: 0.3.9
HOMEPAGE
https://github.com/mcandre/rb-system-with-aliases
RUBYGEMS
https://rubygems.org/gems/rb-system-with-aliases
ABOUT
By default, system shell commands do not execute with aliases, so commands like chruby --version
fail when run indirectly by larger systems like Ruby and Make. systems-with-aliases offers a way to ensure aliases will be interpreted, wherever possible.
REQUIREMENTS
- Ruby 2.0+
INSTALL
$ gem install rb-system-with-aliases
DEVELOPMENT
Checkout a copy of the code, and get the developer dependencies:
$ git clone https://github.com/mcandre/rb-system-with-aliases.git
$ cd rb-system-with-aliases
$ bundle
Test
Ensure the example script works as expected:
$ bundle
$ cucumber
Lint
Keep the code looking good with the linter tools:
$ rake lint
Spell Check
$ aspelllint
Git Hooks
See hooks/
.