Sha256: 3a3b1e7a593f34eaea48137761f3d63ca109d08d3254b1f1c492796e989d969e

Contents?: true

Size: 1.51 KB

Versions: 4

Compression:

Stored size: 1.51 KB

Contents

## dev_commands  <img src="https://badge.fury.io/rb/dev_commands.png" alt="Gem Version" />

A ruby gem to aid in the definition and execution of system commands

### Installation

The gem can be installed by the single command

```
gem install dev_commands
```
 
### Usage

This is an example of a simple usage

```
 require 'dev_commands'

 cmd=Command.new 'ruby --version'
 cmd.execute
 puts "exit_code: #{cmd[:exit_code]}" 
 puts "output: #{cmd[:output]}"

 # exit_code: 0
 # output": ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
```

Using commands in an array

```
  commands=['ruby -version','git --version']
  commands.execute
```

Using commands in a hash

```
 commands=
 {
    build:   ['gem build dev_commands.gemspec'],
    test:    ['rspec'],
    doc:     ['yard doc - LICENSE'],
    add:     ['git add --all'],
    commit:  ["git commit -m'commit all'"],

 }
 commands.execute

```

### License
Copyright 2014-2015 Lou Parslow

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dev_commands-0.0.14 README.md
dev_commands-0.0.13 README.md
dev_commands-0.0.12 README.md
dev_commands-0.0.11 README.md