lib/mkit/app/model/service.rb in mkit-0.7.2 vs lib/mkit/app/model/service.rb in mkit-0.8.0

- old
+ new

@@ -220,9 +220,14 @@ my_addr = self.lease.ip.split('.')[3] filename = "#{'%04i' % my_addr.to_i}_#{self.name}.cfg" MkitJob.publish(topic: :destroy_proxy_config, data: {filename: filename}) end + def find_pod_by_id_or_name(pod_id) + pod = self.pod.find_by(id: pod_id) + pod = self.pod.find_by(name: pod_id) unless pod + pod + end # # ctrl # def start self.pod.each { |p|