lib/percheron/unit.rb in percheron-0.7.13 vs lib/percheron/unit.rb in percheron-0.7.14
- old
+ new
@@ -67,10 +67,14 @@
def full_name
'%s_%s' % [ stack.name, name ]
end
+ def display_name
+ '%s:%s' % [ stack.name, name ]
+ end
+
def pseudo_full_name
'%s_%s' % [ stack.name, pseudo_name ]
end
def image
@@ -91,10 +95,10 @@
ports.each_with_object({}) { |p, all| all[p.split(':')[1]] = {} }
end
def links
startable_dependant_units.map do |_, unit|
- '%s:%s' % [ unit.full_name, unit.name ]
+ '%s:%s' % [ unit.full_name, unit.full_name ]
end
end
def container
Connection.perform(Docker::Container, :get, full_name)