We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c300bc5 commit 7669e87Copy full SHA for 7669e87
groovy/fucking_coffee.groovy
@@ -0,0 +1,26 @@
1
+@Grab(group='org.hidetake', module='groovy-ssh', version='1.1.8')
2
+@GrabExclude('org.codehaus.groovy:groovy-all')
3
+import org.hidetake.groovy.ssh.Ssh
4
+
5
+final def ssh = Ssh.newService()
6
7
+final def HOST = '10.10.42.42'
8
+final def USER = 'my_username'
9
+final def PASSWORD = '1234'
10
+final def DELAY = 24
11
12
+ssh.remotes {
13
+ webServer {
14
+ host = HOST
15
+ user = USER
16
+ password = PASSWORD
17
+ }
18
+}
19
20
+ssh.run {
21
+ session(ssh.remotes.webServer) {
22
+ execute 'sys brew'
23
+ execute "sleep ${DELAY}s"
24
+ execute 'sys pour'
25
26
0 commit comments