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

[docker] added command attribute

This commit is contained in:
Amos Benari 2014-03-02 23:13:42 +02:00
parent aedaf730e8
commit 53c37e7df1
2 changed files with 11 additions and 6 deletions

View file

@ -12,6 +12,9 @@ module Fog
attribute :name
attribute :created
attribute :path
attribute :args
attribute :hostname
attribute :ipaddress, :aliases => 'network_settings_ipaddress'
attribute :bridge, :aliases => 'network_settings_bridge'
attribute :state_running
@ -19,6 +22,8 @@ module Fog
attribute :cores, :aliases => 'config_cpu_shares'
attribute :memory, :aliases => 'config_memory'
attribute :hostname, :aliases => 'config_hostname'
attribute :cmd, :aliases => 'config_cmd'
attribute :entrypoint, :aliases => 'config_entrypoint'
attribute :host
attribute :image
attribute :exposed_ports, :aliases => 'config_exposed_ports'

View file

@ -20,14 +20,14 @@ Shindo.tests('Fog::Compute[:fogdocker] | server model', ['fogdocker']) do
attributes = [ :id,
:name,
:created,
:network_settings_ipaddress,
:ipaddress,
:state_running,
:config_cpu_shares,
:config_memory,
:config_hostname,
:cores,
:memory,
:hostname,
:image,
#:config => exposed_ports,
#:config => volumes
#:exposed_ports,
#:volumes
]
tests("The server model should respond to") do
attributes.each do |attribute|