drone/drone-ruby

Name: drone-ruby

Owner: drone.io

Description: Ruby client for the Drone API

Created: 2016-02-16 18:05:58.0

Updated: 2018-04-24 02:02:42.0

Pushed: 2016-04-11 15:51:36.0

Homepage: null

Size: 34

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

drone-ruby

Build Status Coverage Status Gem Version

Ruby client for the Drone API

Install

To install this simple rubygem you can add gem "droneio" to your Gemfile or s.add_runtime_dependency "droneio", ">= 1.0.0" to your Gemspec, as this gem doesn't provide any bin script it doesn't make sense to install it standalone.

Client

You can use this library as a client to communicate with any Drone instance running on version >= 0.4. Below you can see some examples for the usage.


If you want to know more details about the available methods, please take a look at the documentation.

Plugin

In order to write plugins for Drone based on Ruby you can use the Plugin class to parse the defined payload that plugins need to accept. Below you can see an example how you can use this functionality within your plugin.

e::Plugin.new(STDIN) do |payload|
ts "Plugin execution for #{payload.repo.full_name}"
ts "You are providing those arguments: #{payload.vargs}"

If you want to know more details about the available methods, please take a look at the documentation.

Contributing

Fork -> Patch -> Spec -> Push -> Pull Request

Authors
License

Apache-2.0

Copyright
right (c) 2016 Drone.io Developers

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.