Class: DockerCloud::Stack

Inherits:
Type
  • Object
show all
Defined in:
lib/docker_cloud/stack.rb

Instance Attribute Summary

Attributes inherited from Type

#uuid

Instance Method Summary collapse

Methods inherited from Type

#initialize

Constructor Details

This class inherits a constructor from DockerCloud::Type

Instance Method Details

#deployed_dateObject



30
31
32
# File 'lib/docker_cloud/stack.rb', line 30

def deployed_date
  info[:deployed_datetime]
end

#destroyed_dateObject



34
35
36
# File 'lib/docker_cloud/stack.rb', line 34

def destroyed_date
  info[:destroyed_datetime]
end

#nameObject



7
8
9
# File 'lib/docker_cloud/stack.rb', line 7

def name
  info[:name]
end

#nicknameObject



38
39
40
# File 'lib/docker_cloud/stack.rb', line 38

def nickname
  info[:nickname]
end

#resource_uriObject



3
4
5
# File 'lib/docker_cloud/stack.rb', line 3

def resource_uri
  info[:uui]
end

#servicesObject

def services; info; end



20
21
22
23
24
25
26
27
28
# File 'lib/docker_cloud/stack.rb', line 20

def services
  if @services.nil?
    @services = []
    info[:services].each do |uri|
      @services.push(client.services.get_from_uri(uri))
    end
  end
  @services
end

#stateObject



11
12
13
# File 'lib/docker_cloud/stack.rb', line 11

def state
  info[:state]
end

#synchronizedObject



15
16
17
# File 'lib/docker_cloud/stack.rb', line 15

def synchronized
  info[:synchronized]
end