Skip to content

Commit

Permalink
Move inventory logic to ManageIQ Provider Refresher
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Jul 8, 2016
1 parent dbd8327 commit 3a4927d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 98 deletions.
1 change: 0 additions & 1 deletion lib/foreman_api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

require "foreman_api_client/connection"
require "foreman_api_client/host"
require "foreman_api_client/inventory"
require "foreman_api_client/paged_response"

module ForemanApiClient
Expand Down
4 changes: 0 additions & 4 deletions lib/foreman_api_client/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ def host(manager_ref)
::ForemanApiClient::Host.new(self, manager_ref)
end

def inventory
Inventory.new(self)
end

# used for tests to manually invoke loading api from server
# this keeps http calls consistent

Expand Down
44 changes: 0 additions & 44 deletions lib/foreman_api_client/inventory.rb

This file was deleted.

6 changes: 0 additions & 6 deletions spec/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,4 @@
end
end
end

it "#inventory" do
inventory = connection.inventory
expect(inventory).to be_instance_of(ForemanApiClient::Inventory)
expect(inventory.connection).to eq(connection)
end
end
43 changes: 0 additions & 43 deletions spec/inventory_spec.rb

This file was deleted.

0 comments on commit 3a4927d

Please sign in to comment.