amfeng / phabricator-ruby

Wrapper around Phabricator's Conduit API
MIT License
16 stars 16 forks source link

phabricator-ruby Build Status

Installation

Add this line to your application's Gemfile:

gem 'phabricator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install phabricator

Usage

Configuration

You can configure Phabricator to use a specific host, user, and cert. Otherwise, it will fall back to whatever is in your ~/.arcrc file.

Phabricator.configure do |c|
  c.host = 'secure.phabricator.com'
  c.user = 'amber'
  c.cert = '<CERT>'
end

Projects

# Find the project given a project name.
Phabricator::Project.find_by_name('Project')

Tasks

# Create a Maniphest task.
Phabricator::Maniphest::Task.create('title')

# Create a Maniphest task with more detail.
Phabricator::Maniphest::Task.create('title', 'description', ['Project'], 'normal')

Contributing

Patches welcome! (:

For a list of Conduit methods available, see http://secure.phabricator.com/conduit/.