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:
parent
2c1b464286
commit
67fd6c328e
8 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue