Skip to content

d-m-u/foreman_api_client

Repository files navigation

ForemanApiClient

Build Status Code Climate Coverage Status Security

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

```ruby
  require 'foreman_api_client'
  ForemanApiClient.logger ||= $log
  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

About

Ruby client library to The Foreman

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 99.1%
  • Shell 0.9%