Sha256: 1a4d33b4975738ac29f3b47eab57f079061c3727c5cfb1cbae496835347ae1ec
Contents?: true
Size: 1.64 KB
Versions: 17
Compression:
Stored size: 1.64 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 ``` CLEAN and CLOBBER are defined by dev_command, the default values may be overridden with ``` CLEAN.clear CLOBBER.clear ``` ### 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
17 entries across 17 versions & 1 rubygems