Rakefiles: fix 'rake out` and `rake push` tasks
authorJan Vrany <jan.vrany@labware.com>
Wed, 04 Nov 2020 11:26:15 +0000
changeset 311 71d918531d37
parent 310 2cf08578aa5f
child 312 7f1be752f87a
Rakefiles: fix 'rake out` and `rake push` tasks ...to check against `default` repository (a follow up after dropping use of upstream / staging repos)
rakelib/workflow.rake
--- a/rakelib/workflow.rake	Wed Nov 04 11:10:18 2020 +0000
+++ b/rakelib/workflow.rake	Wed Nov 04 11:26:15 2020 +0000
@@ -94,19 +94,19 @@
   task :'push-upstream' => :'setup'
 
 
-  desc 'Display changes to be pushed to staging repositores (use it to review what workflow:push-staging would do)'
-  task :'out-staging', :user, :pass do |t, args|
+  desc 'Display changes to be pushed (use it to review what workflow:push would do)'
+  task :'out', :user, :pass do |t, args|
     RakeFileUtils.verbose(false) do
-      has_changes = push('staging', args[:user], args[:pass], true, true)
+      has_changes = push('default', args[:user], args[:pass], true, true)
       puts 'No changes to be pushed to staging repositories' unless has_changes
       exit(has_changes ? 0 : 1 )
     end
   end
   task :'out-staging' => :'setup'
 
-  desc 'Push currently checked out revisions to staging repositories (to be by developer to test her changes)'
-  task :'push-staging', :user, :pass do |t, args|
-    push('staging', args[:user], args[:pass], false, true)
+  desc 'Push currently checked out revisions (to be used by developer to test her changes)'
+  task :'push', :user, :pass do |t, args|
+    push('default', args[:user], args[:pass], false, true)
   end
   task :'push-staging' => :'setup'