Skip to content
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

Implement sshoogr main app that will be capable of running *.sshoogr scripts #40

Closed
aadamovich opened this issue Jun 4, 2014 · 2 comments

Comments

@aadamovich
Copy link
Member

Those scripts are just plain Groovy with few magic imports added

@acsadam0404
Copy link

You can use groovy with Grab.

Execute with groovy scriptfile.groovy

@Grab('com.aestasit.infrastructure.sshoogr:sshoogr:0.9.18')
import static com.aestasit.infrastructure.ssh.DefaultSsh.*

options.trustUnknownHosts = true
options.failOnError = false
options.execOptions.failOnError = false

remoteSession(...) {
//       sshoogr magic
 }

@aadamovich
Copy link
Member Author

The idea was to have executable that can be called like that:

  sshoogr --hosts=list_of_hosts.txt --trust=true --failOnError=false magic.sshoogr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants