
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
SystemCommand
allows you to run external process as if they were functions.
Run gem install system_command
or add gem 'system_command', '~> 2.0'
to your Gemfile.
Example:
git = SystemCommand.new('git')
SystemCommand.verbose = true # if you want executed commands to be printed to stdout similar to rake.
# Runs `git status` with its output sent to the terminal. Raises SystemCommand::Error if git does not exit successfully.
git.run('status')
# Runs `git diff --exit-code` with its output sent to the terminal. Returns true if git exits successfully.
if git.run?('diff', '--exit-code')
# Runs `git rev-parse --abbrev-ref HEAD` and returns the output. Raises SystemCommand::Error if git does not exit successfully.
branch = git.gets('rev-parse', '--abbrev-ref', 'HEAD')
end
# more ways to capture output from commands
lines = git.lines('shortlog')
git.each_line('shortlog') do |line|
...
end
After checking out the repo, run bin/setup
to install dependencies. Then, run rspec
to run the tests.
To install this gem onto your local machine, run rake install
.
To release a new version:
main
branch.lib/system_command/version.rb
, run bundle install
, then commit the result.v2
branch.git merge main
rake release
, which will create/push a git tag and publish the .gem
file to rubygems.org.Bug reports and pull requests are welcome on GitLab at https://gitlab.com/coldwater-systems/system_command.
FAQs
Unknown package
We found that system_command demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.