Sha256: 0baf9c7581cab7282b6ec1d787618f021020944377250f253d31a0ea680865cf

Contents?: true

Size: 975 Bytes

Versions: 3

Compression:

Stored size: 975 Bytes

Contents

# SystemExecutor

[![Gem Version](https://badge.fury.io/rb/system_executor.svg)](http://badge.fury.io/rb/system_executor)

The dead simple wrapper class for the `Kernel.system` calls. Useful during tests
when you want mock the system calls.

## Installation

Add this line to your application's Gemfile:

    gem 'system_executor'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install system_executor

## Usage

```
require 'system_executor'

class Foo

  def initialize(executor)
    @executor = executor
  end

  def bar
    ...
    @executor.run 'rm -r /tmp'
    ...
  end

end

foo = Foo.new(SystemExecutor::Executor.new)
foo.bar

```

## Versioning

See [semver.org][semver]

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

[semver]: http://semver.org/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
system_executor-1.0.3 README.md
system_executor-1.0.2 README.md
system_executor-1.0.1 README.md