libraries/deploy-context/deploy/context.rb in deploy-context-2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14 vs libraries/deploy-context/deploy/context.rb in deploy-context-2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14.4.gb48499b
- old
+ new
@@ -2,10 +2,14 @@
module DeployHelpers
module ContextHelper
def present_localy?
Dir.exist?(context_folder)
end
-
+
+ def shorten_version(context)
+ context.version.canonical_segments[0..2].join('.')
+ end
+
def actual_working_directory?
Dir.pwd == context_folder
end
def move_folder(folder)
\ No newline at end of file