lib/dply/tasks.rb in dply-0.2.11 vs lib/dply/tasks.rb in dply-0.2.13

- old
+ new

@@ -13,25 +13,34 @@ def test(target, optional: false) bundle.install rake_runner "app:test:#{target}", optional: optional end - def build(target) - task = target ? "app:build:#{target}" : "app:build" + def build(task) + fallback_task = "build:default" bundle.install bundle.clean - rake_runner task + rake_runner task, fallback_task end - def deploy(strategy, target: nil) - task = target ? "app:deploy:#{target}" : "app:deploy:#{strategy}" + def deploy(target) + fallback_task = "production:deploy" + task = "app:deploy:#{target}" bundle.install - rake_runner task + rake_runner task, fallback_task end def reload + fallback_task = "production:reload" + task = "app:reload" bundle.install - rake_runner "app:reload" + rake_runner task, fallback_task + end + + def reopen_logs + fallback_task = "production:reopen_logs" + task = "app:reopen_logs" + rake_runner task, fallback_task end def stop bundle.install rake_runner "app:stop"