This repository has been archived by the owner. It is now read-only.
Ruby client for the Drone API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.drone.sec
.drone.yml
.gitignore
.rspec
.rubocop.yml
CHANGELOG.md
Gemfile
Guardfile
LICENSE
MAINTAINERS
README.md
Rakefile
droneio.gemspec

README.md

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.

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