Sha256: 6c613db3811ceeb83e91be91cfde8cb33ebe204f791ea1defc29d4d16e75bb5a
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
# ActsAsShellscriptExecutable [![travis-batch](https://travis-ci.org/hoshinotsuyoshi/acts_as_shellscript_executable.svg)](https://travis-ci.org/hoshinotsuyoshi/acts_as_shellscript_executable) [![Coverage Status](https://coveralls.io/repos/hoshinotsuyoshi/acts_as_shellscript_executable/badge.png)](https://coveralls.io/r/hoshinotsuyoshi/acts_as_shellscript_executable) [![Code Climate](https://codeclimate.com/github/hoshinotsuyoshi/acts_as_shellscript_executable/badges/gpa.svg)](https://codeclimate.com/github/hoshinotsuyoshi/acts_as_shellscript_executable) class Script < ActiveRecord::Base acts_as_shellscript_executable script: :script, stdout: :result end ### before: | id | name | script | result | | :------|:------ |:---------------|:-----| | 1 | foo | echo 'lalala' | | ### execute: script = Script.find(1) script.execute! ### after: | id | name | script | result | | :------|:------ |:---------------|:-----| | 1 | foo | echo 'lalala' | lalala | ## Installation Add this line to your application's Gemfile: gem 'acts_as_shellscript_executable' And then execute: $ bundle Or install it yourself as: $ gem install acts_as_shellscript_executable ## Contributing 1. Fork it ( http://github.com/<my-github-username>/acts_as_shellscript_executable/fork ) 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_shellscript_executable-0.0.0 | README.md |