The gem that checks your software dependencies
This gem is in beta version! Please use it carefully.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install chekku
$ chekku checks # Check your software dependencies (default task) $ chekku help [TASK] # Describe available tasks or one specific task
This is the file that contains the dependencies we need to checks.
check 'mysql', must_run: true check 'redis' check 'postgres', "~> 9.2", must_run: true check 'imagemagick', "<= 4"
This file is in an hidden folder of your home and should contain information about how to check the existance, versions,... of a dependency
mysql: executable: 'mysqld' redis: executable: 'redis-server' imagemagick: executable: 'convert'
Use Definition object in your code
Example on how to check a software dependency
require 'chekku/definition' definition = Chekku::Definition.new(name: 'mysql', executable: 'mysqld') # return true or false definition.chekku('>= 5.0') #return true or raise an error definition.chekku!('> 5.0')
I'm currently working on a webapp to define online all the values for this file. So it will be community based.
- 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