Provides a Ruby interface to the Sony Ci REST API. Features:
each
or map
to iterate over everything in a workspace, rather worrying
about batches of 50 at a time.For the examples below you will need to have a Sony Ci account,
and your credentials must be provided in config/ci.yml
,
based on the sample in the same directory.
$ sony_ci_api # lists the available options
This should work in any project which includes the gem, when run from the root of
the project, with config/ci.yml
in place on that project.
$ irb -Ilib -rsony_ci_api
> ci = SonyCiAdmin.new(credentials_path: 'config/ci.yml')
> ci.list_names # etc.
config/ci.yml
is in place.rspec
To publish gem:
curl -u my-user-name https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
gem build sony_ci_api.gemspec
gem push sony_ci_api-X.Y.Z.gem