entangler 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/exe/entangler +4 -0
- data/lib/entangler/executor/master.rb +7 -2
- data/lib/entangler/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: 978f1befab614ac84fd5431a6f24c2b2340530e9d0b8af712adeefece83b15b2
|
4
|
+
data.tar.gz: 3dd669556077a5f0e2247d21c710081acc827160dc1cc13f76dedc5f36f87c93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97a2687b985d9137ae8679596ffcbe2142ee81db16b390716e12e7dd767b31ccdd15e89b1e8d6a0561995a59e1abc75eb4f3e3c4316e42ed614baeeb67d60d4d
|
7
|
+
data.tar.gz: ff46e79a5d8d84308e610b64b04aeb754a846922522b6ff80ae6544c239fb120b865f9e8ec18f15ab746218a6d4bf1b5f6c66f9da9016b4672ed5bfbd3a1983c
|
data/README.md
CHANGED
@@ -30,6 +30,8 @@ Options:
|
|
30
30
|
All paths should be relative to the base sync directory.
|
31
31
|
-p, --port PORT Overwrite the SSH port (usually 22)
|
32
32
|
(doesn't do anything in slave mode)
|
33
|
+
-c, --config PATH Use a custom SSH config (usually $HOME/.ssh/config)
|
34
|
+
(doesn't do anything in slave mode)
|
33
35
|
--force-polling Forces the use of the listen polling adapter
|
34
36
|
(works cross-platform, generally slower, doesn't do anything in slave mode)
|
35
37
|
--no-rvm Skip attempting to load RVM on remote
|
data/exe/entangler
CHANGED
@@ -40,6 +40,9 @@ OptionParser.new do |opts|
|
|
40
40
|
value_opt(options, opts, :port, '-p', '--port PORT', 'Overwrite the SSH port (usually 22)',
|
41
41
|
"(doesn't do anything in slave mode)")
|
42
42
|
|
43
|
+
value_opt(options, opts, :config, '-c', '--config PATH', 'Use a custom SSH config (usually $HOME/.ssh/config)',
|
44
|
+
"(doesn't do anything in slave mode)")
|
45
|
+
|
43
46
|
bool_opt(options, opts, :force_polling, '--force-polling',
|
44
47
|
'Forces the use of the listen polling adapter',
|
45
48
|
"(works cross-platform, generally slower, doesn't do anything in slave mode)")
|
@@ -124,6 +127,7 @@ if options[:ignore]
|
|
124
127
|
end
|
125
128
|
end
|
126
129
|
|
130
|
+
opts[:config] = options[:config]
|
127
131
|
opts[:force_polling] = options[:force_polling]
|
128
132
|
opts[:no_rvm] = options[:no_rvm]
|
129
133
|
opts[:quiet] = options[:quiet]
|
@@ -65,7 +65,9 @@ module Entangler
|
|
65
65
|
cmd
|
66
66
|
end
|
67
67
|
|
68
|
-
"ssh -q #{remote_hostname} -p #{@opts[:remote_port]}
|
68
|
+
ssh = "ssh -q #{remote_hostname} -p #{@opts[:remote_port]}"
|
69
|
+
ssh += " -F #{@opts[:config]}" if @opts[:config]
|
70
|
+
ssh + " -C \"#{prefixed_cmd}\""
|
69
71
|
end
|
70
72
|
|
71
73
|
def remote_hostname
|
@@ -83,7 +85,10 @@ module Entangler
|
|
83
85
|
remote_path += "#{@opts[:remote_base_dir]}/"
|
84
86
|
|
85
87
|
cmd = "rsync -azv --exclude-from #{rsync_ignores_file_path}"
|
86
|
-
|
88
|
+
if @opts[:remote_mode]
|
89
|
+
config = @opts[:config] ? "-F #{@opts[:config]}" : ''
|
90
|
+
cmd += " -e \"ssh -p #{@opts[:remote_port]} #{config}\""
|
91
|
+
end
|
87
92
|
cmd + " --delete #{base_dir}/ #{remote_path}"
|
88
93
|
end
|
89
94
|
end
|
data/lib/entangler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: entangler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Allie
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|