lib/vx/builder/script_builder/cache.rb in vx-builder-0.3.3 vs lib/vx/builder/script_builder/cache.rb in vx-builder-0.3.4
- old
+ new
@@ -1,10 +1,10 @@
module Vx
module Builder
class ScriptBuilder
- Cache = Struct.new(:app) do
+ class Cache < Base
include Helper::Config
CASHER_URL = "https://raw2.github.com/dima-exe/casher/master/bin/casher"
CASHER_BIN = "$HOME/.casher/bin/casher"
@@ -81,10 +81,10 @@
end
env.init << "unset CASHER_DIR"
end
def push(env)
- if env.cache_push_url
+ if env.cache_push_url && !deploy?(env)
env.after_script << "#{casher_cmd} push #{env.cache_push_url}"
end
end
end