-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagation of options is broken #47
Comments
Can you show your full script, please? |
You are right about the default value. It is actually true by default. I will fix the docs. |
What if you move
There is logging improvement that will be included into next version of sshoogr. That should be much better than current progress logging which is rather simplistic. Stay tuned. |
That is pretty much the full script minus the Grab and import @Grab('com.aestasit.infrastructure.sshoogr:sshoogr:0.9.16')
import static com.aestasit.ssh.DefaultSsh.*
import com.aestasit.ssh.ScpOptions
import com.aestasit.ssh.SshOptions
import com.aestasit.ssh.dsl.SshDslEngine
println "Deploying to " + args[0]
remoteSession {
host = args[0]
username = args[1]
scpOptions({
showProgress = false
verbose = false
})
scp "/tmp/foo.zip", '/tmp'
} but like I said, this is just one version. I've tried nearly every permutation I can come up with but I am having a hard time figuring out how to turn off progress at all. |
just saw your update, if I try it outside of the remoteSession, and remove it from the inside I get a similar error:
|
This one works for me:
As I already mentioned, logging will be cleaned up in next version. |
Hi guys, this is really a bug, 'showProgress' as well as other scpOptions became not working since 0.9.11, it was functional in 0.9.4 |
Wow, it's nice to know someone is using sshoogr since 0.9.4 :). Yes, I confirm there is a problem with option overriding mechanism in current version. I hope to fix it upon next release in 0.9.17, which is going to come this month. |
Hi, is there any further documentation explaining how to set ScpOptions without created a separate engine? I have tried various permutations on (I am new to Groovy, but I did do a bit of research):
however I am still seeing the progress, and when foo.zip is large it is extremely verbose.
Also, the docs say showProgress default is false, which I believe is wrong.
The text was updated successfully, but these errors were encountered: