remote_sh 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/remote_sh/cli.rb +11 -0
- data/lib/remote_sh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97bb90de5d65095a12854843df61d54b9e08e774c1b2cab1ddf19d289f76319f
|
4
|
+
data.tar.gz: ab9932f0a7c2817c9b55f193e97f22ef71600a23187d8b8929bbb3f00fa3b565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccfc0c0500546a57bed1183036c0953ecc7e0ef99c787b1c079bdfa4b862590c04e152b1b50b5190eafb476904db8a35ecaa639dcc8e7e07c6b16e22d222b014
|
7
|
+
data.tar.gz: b8dcd2b9ed962a7a09294f4bbb211d50b7382c53e67e3386b24c946ce2f2ba9e7d53d58b750eb46b2e0a591310e010db0b695ce882db14906d8d539e535244cd
|
data/lib/remote_sh/cli.rb
CHANGED
@@ -57,9 +57,11 @@ module RemoteSh
|
|
57
57
|
|
58
58
|
desc "exec", "executes given command within remote context"
|
59
59
|
def exec(*argv)
|
60
|
+
sync_up
|
60
61
|
host = WorkspaceConfiguration.host_config["host"]
|
61
62
|
host_path = WorkspaceConfiguration.config["host_path"]
|
62
63
|
SshHelper.exec(host, host_path, argv)
|
64
|
+
sync_down
|
63
65
|
end
|
64
66
|
map 'e' => :exec
|
65
67
|
|
@@ -67,5 +69,14 @@ module RemoteSh
|
|
67
69
|
def init
|
68
70
|
WorkspaceConfiguration.init!
|
69
71
|
end
|
72
|
+
|
73
|
+
desc "port_forward", "ssh and port_forward"
|
74
|
+
def port_forward
|
75
|
+
host = WorkspaceConfiguration.host_config["host"]
|
76
|
+
host_path = WorkspaceConfiguration.config["host_path"]
|
77
|
+
PortForwarder.start_or_skip(WorkspaceConfiguration.host_config)
|
78
|
+
SshHelper.attach(host, host_path)
|
79
|
+
end
|
80
|
+
map 'pf' => :port_forward
|
70
81
|
end
|
71
82
|
end
|
data/lib/remote_sh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_sh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Egorov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: filewatcher
|