lib/jarl/application.rb in jarl-0.6.0 vs lib/jarl/application.rb in jarl-0.7.0

- old
+ new

@@ -52,10 +52,14 @@ def image_is_a_path? image =~ /^[~\.\/]/ end + def image_is_a_registry_path? + image =~ /^.+:\d+\// + end + def running? instances.size > 0 end def instances @@ -92,9 +96,13 @@ instances.first.ssh(command) end def build Docker::Image.new(image_name, image_full_path).build! + end + + def pull + Docker::Image.new(image_name, image_full_path).pull! end def image_name image_is_a_path? ? File.basename(image) : image end