Add RubyShell to your Gemfile:
gem 'rubyshell'
Then run:
bundle install
Or add it directly with:
bundle add rubyshell
gem install rubyshell
require 'rubyshell'
This extends Kernel with the sh method, making it available everywhere in your Ruby code.
Kernel
sh
require 'rubyshell' sh do puts pwd end
If you see your current directory printed, RubyShell is working correctly.
Next: Basic Usage
There was an error while loading. Please reload this page.