share/rbbt_commands/workflow/remote/add in rbbt-util-5.5.16 vs share/rbbt_commands/workflow/remote/add in rbbt-util-5.5.17
- old
+ new
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
require 'rbbt'
-url, workflow = ARGV
+workflow, url = ARGV
url = File.join(url, workflow) unless url =~ /\/#{workflow}$/
config_file = Rbbt.etc.remote_workflows
remote_workflows = config_file.exists? ? config_file.yaml : {}
remote_workflows[workflow] = url
Open.write(config_file.find(:user), remote_workflows.to_yaml)