drone-ruby
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.
TBD
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.
Drone::Plugin.new(STDIN) do |payload|
puts "Plugin execution for #{payload.repo.full_name}"
puts "You are providing those arguments: #{payload.vargs}"
end
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
Copyright (c) 2016 Drone.io Developers