lib/testlab/container/status.rb in testlab-0.0.4 vs lib/testlab/container/status.rb in testlab-0.1.0

- old
+ new

@@ -1,14 +1,20 @@ class TestLab class Container module Status + def fqdn + self.domain ||= self.node.labfile.config[:domain] + + [self.id, self.domain].join('.') + end + def status interfaces = self.interfaces.collect{ |network, network_config| "#{network}:#{network_config[:name]}:#{network_config[:ip]}" }.join(', ') - { :id => self.id, + :fqdn => self.fqdn, :state => self.state, :distro => self.distro, :release => self.release, :interfaces => interfaces, :provisioner => self.provisioner,