marianitadn/foregit — pull request #5 by marianitadn (2014-07-01 11:47:34+00:00)
Title: Create binding to update a Foreman instance

## Need

```gherkin
As a developer
I want to communicate with the Foreman instance via the Git repository
So that I can update the instance with the new Foreman configs
```

## Deliverables

- A manager which will handle the update of a Foreman instance with a given configuration

## Solution

### Abstract

Using the ConfigurationManager load a list of components, and make API calls to Foreman to update/create resources based on the loaded components.

#### Prerequisites
- [Can Hammer be reused?](https://github.com/theforeman/hammer-cli-foreman)
- a class to upload configuration to Foreman through API endpoints (the same as above but with POST/PUT/PATCH) - [example](https://github.com/opscode/chef/blob/master/lib/chef/knife/upload.rb)

#### TODO
- [ ] Create tests for `Foreman:Upload`
- [ ] Create class `Foreman::Upload` which will make API calls to a Foreman instance

#### Files
- lib/foreman/upload.rb