Capybara::Bamboo::Client
This gem helps Bamboo users who have admin access to config/run/stop/enable/disable plans but don't have privileges like bulk action perform actions on Bamboo.
Installation
Add this line to your application's Gemfile:
gem 'capybara-bamboo-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capybara-bamboo-client
Usage
e.g. My project URL on Bamboo is https://bamboo.neilma.com.au/browse/neil
require 'capybara-bamboo-client' include Capybara::Bamboo
bamboo_client = Client.configure do |config| config.bamboo_url = 'https://bamboo.neilma.com.au/browse/neil' config.username = 'username' config.password = 'password' end
bamboo_client.login
bamboo_client.construct_plans bamboo_client.plans.each do |plan| plan.disable # Disable all the plans, also can put if condition in to target only wanted plans plan.enable # Enable all the plans plan.stop plan.start end
Contributing
- Fork it ( https://github.com/[my-github-username]/capybara-bamboo-client/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request