1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

info is now called json

This commit is contained in:
Michael Sprauer 2014-04-02 17:10:00 +02:00
parent 2c1b464286
commit 67fd6c328e
8 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ module Fog
raise ArgumentError, "instance id is a required parameter" unless options.has_key? :id
raise ArgumentError, "action is a required parameter" unless options.has_key? :action
container = Docker::Container.get(options[:id])
downcase_hash_keys container.send(options[:action]).info
downcase_hash_keys container.send(options[:action]).json
end
end

View file

@ -10,7 +10,7 @@ module Fog
# size true or false, Show the containers sizes
def container_all(filters = {})
Docker::Container.all(filters.merge(:all => true)).map do |container|
downcase_hash_keys(container.info)
downcase_hash_keys(container.json)
end
end

View file

@ -5,7 +5,7 @@ module Fog
def container_commit(options)
raise ArgumentError, "instance id is a required parameter" unless options.has_key? :id
container = Docker::Container.get(options[:id])
downcase_hash_keys container.commit(camelize_hash_keys(options)).info
downcase_hash_keys container.commit(camelize_hash_keys(options)).json
end
end

View file

@ -27,7 +27,7 @@ module Fog
#}
class Real
def container_create(attrs)
downcase_hash_keys Docker::Container.create(camelize_hash_keys(attrs)).info
downcase_hash_keys Docker::Container.create(camelize_hash_keys(attrs)).json
end
end

View file

@ -3,7 +3,7 @@ module Fog
class Fogdocker
class Real
def container_get(id)
downcase_hash_keys Docker::Container.get(id).info
downcase_hash_keys Docker::Container.get(id).json
end
end

View file

@ -4,7 +4,7 @@ module Fog
class Real
def image_all(filters = {})
Docker::Image.all.map do |image|
downcase_hash_keys(image.info)
downcase_hash_keys(image.json)
end
end
end

View file

@ -4,7 +4,7 @@ module Fog
class Real
def image_create(attrs)
downcase_hash_keys Docker::Image.create(attrs).info
downcase_hash_keys Docker::Image.create(attrs).json
end
end

View file

@ -3,7 +3,7 @@ module Fog
class Fogdocker
class Real
def image_get(id)
downcase_hash_keys Docker::Image.get(id).info
downcase_hash_keys Docker::Image.get(id).json
end
end