lib/vx/builder/script_builder/base.rb in vx-builder-0.3.3 vs lib/vx/builder/script_builder/base.rb in vx-builder-0.3.4
- old
+ new
@@ -33,24 +33,28 @@
def do_install(env)
yield env.install
end
def do_deploy_script(env)
- if env.source.deploy_modules?
+ if deploy?(env)
yield env.script
end
end
def do_before_deploy(env)
- if env.source.deploy_modules?
+ if deploy?(env)
yield env.before_script
end
end
def do_after_deploy(env)
- if env.source.deploy_modules?
+ if deploy?(env)
yield env.after_success
end
+ end
+
+ def deploy?(env)
+ env.source.deploy_modules?
end
end
end