Low commit activity in last 3 years
No release in over a year
Foreman apipie-bindings wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
~> 3.0.2
~> 2.3.1
>= 0.21.2

Runtime

 Project Readme

Foreman API Client

Gem Version CI Code Climate Test Coverage

A simple wrapper around Apipie-bindings to provide Ruby classes for Foreman.

Installation

Add this line to your application's Gemfile:

gem 'foreman_api_client', :git => "git://github.com/ManageIQ/foreman_api_client.git", :branch => "master"

And then execute:

$ bundle

Usage

require 'foreman_api_client'
ForemanApiClient.logger = Logger.new(STDOUT)
connection = ForemanApiClient::Connection.new(
  :base_url   => base_url,
  :username   => username,
  :password   => password,
  :verify_ssl => verify_ssl
)
c.host(1)
=> #<ForemanApiClient::Host:0x0055b8a05daa58 ...>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

The gem is available as open source under the terms of the Apache License 2.0.