Perform actions (run tests, deploy, ...or whatever you want) in your ruby project pushing a big red button.
Add this lines to your application's Gemfile:
gem 'triggerino'
gem 'dino',
git://github.com/supherman/dino.git',
branch: 'lcdv3'
And then execute:
bundle
-
Create a "triggerino" dir
mkdir triggerino
-
Define your action classes
touch triggerino/my_action.rb class MyAction include Triggerino::Action def perform # puts your action logic here end def to_s 'A descriptive name for your action' end end
-
Wire your arduino like this
Also add 2 push buttons, one will be the action selector and it needs to be connected to the pin 10 and a the other one will be the trigger and it needs to be connected to the pin 9.
-
Run the listener
bundle exec triggerino
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request