Sha256: 4e0874465bc35fcb27ec482263ad15b65c00765e857f197eb6826ed73d3c1560
Contents?: true
Size: 1.94 KB
Versions: 1
Compression:
Stored size: 1.94 KB
Contents
# Quick and Simple Executor of Bash Commands [![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/bash)](http://www.rultor.com/p/yegor256/bash) [![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/) [![rake](https://github.com/yegor256/bash/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/bash/actions/workflows/rake.yml) [![PDD status](http://www.0pdd.com/svg?name=yegor256/bash)](http://www.0pdd.com/p?name=yegor256/bash) [![Gem Version](https://badge.fury.io/rb/bash.svg)](http://badge.fury.io/rb/bash) [![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/bash.svg)](https://codecov.io/github/yegor256/bash?branch=master) [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/github/yegor256/bash/master/frames) [![Hits-of-Code](https://hitsofcode.com/github/yegor256/bash)](https://hitsofcode.com/view/github/yegor256/bash) [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/bash/blob/master/LICENSE.txt) First, install it: ```bash gem install qbash ``` Simply execute a bash command from Ruby: ```ruby require 'qbash' stdout = qbash('echo "Hello, world!"') ``` If the command fails, an exception will be raised. It's possible to provide the standard input and environment variables: ```ruby stdout = qbash('cat > $FILE', env: { 'FILE' => 'a.txt' }, stdin: 'Hello!') ``` It's possible to configure the logging facility too, with the help of the [loog](https://github.com/yegor256/loog) gem. ## How to contribute Read [these guidelines](https://www.yegor256.com/2014/04/15/github-guidelines.html). Make sure you build is green before you contribute your pull request. You will need to have [Ruby](https://www.ruby-lang.org/en/) 3.0+ and [Bundler](https://bundler.io/) installed. Then: ```bash bundle update bundle exec rake ``` If it's clean and you don't see any error messages, submit your pull request.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qbash-0.0.1 | README.md |