Add this line to your application's Gemfile:
gem 'phabricator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install phabricator
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
# Find the project given a project name.
Phabricator::Project.find_by_name('Project')
# Create a Maniphest task.
Phabricator::Maniphest::Task.create('title')
# Create a Maniphest task with more detail.
Phabricator::Maniphest::Task.create('title', 'description', ['Project'], 'normal')
Patches welcome! (:
For a list of Conduit methods available, see http://secure.phabricator.com/conduit/.