fsevents_to_vm 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/fsevents_to_vm/cli.rb +2 -1
- data/lib/fsevents_to_vm/ssh_emit.rb +6 -2
- data/lib/fsevents_to_vm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1911f89027d433ab2fb5bd0e3656032d7dc85a06
|
4
|
+
data.tar.gz: 3e60b84628bf6a1507c477427a54c3c3443f9f57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 911087d1ecb8feb7591e395797d4b771476753c57ce7f44ad7f7ddcba35723ef069811bf128f402bb4af394f643ad1621f29a74f5c53beda97b6f4a113c40869
|
7
|
+
data.tar.gz: bfd52e31304ebe7c41a24adf563d5a489e72d337606a27e9b66d00875cc23c845a5d341337f2213a1c6cf6ce2c19b11fdbe4c71ddad74a29438281b88214c8e0
|
data/CHANGELOG.md
CHANGED
data/lib/fsevents_to_vm/cli.rb
CHANGED
@@ -6,6 +6,7 @@ module FseventsToVm
|
|
6
6
|
option :debug, type: :boolean, default: false
|
7
7
|
option :ssh_identity_file, type: :string
|
8
8
|
option :ssh_ip, type: :string
|
9
|
+
option :ssh_username, type: :string, default: 'docker'
|
9
10
|
desc "start PATH",
|
10
11
|
"Watch PATH and forward filesystem touch events to the Dinghy VM."
|
11
12
|
def start(listen_dir = ENV['HOME'])
|
@@ -14,7 +15,7 @@ module FseventsToVm
|
|
14
15
|
watcher = FseventsToVm::Watch.new(listen_dir)
|
15
16
|
path_filter = FseventsToVm::PathFilter.new
|
16
17
|
recursion_filter = FseventsToVm::RecursionFilter.new
|
17
|
-
forwarder = FseventsToVm::SshEmit.new(options[:ssh_identity_file], options[:ssh_ip])
|
18
|
+
forwarder = FseventsToVm::SshEmit.new(options[:ssh_identity_file], options[:ssh_ip], options[:ssh_username])
|
18
19
|
|
19
20
|
if debug
|
20
21
|
puts "Watching #{listen_dir} and forwarding events to Dinghy VM..."
|
@@ -4,9 +4,10 @@ require 'tempfile'
|
|
4
4
|
|
5
5
|
module FseventsToVm
|
6
6
|
class SshEmit
|
7
|
-
def initialize(identity_file, ip)
|
7
|
+
def initialize(identity_file, ip, username)
|
8
8
|
@identity_file = identity_file
|
9
9
|
@ip = ip
|
10
|
+
@username = username
|
10
11
|
end
|
11
12
|
|
12
13
|
def event(event)
|
@@ -20,7 +21,10 @@ module FseventsToVm
|
|
20
21
|
protected
|
21
22
|
|
22
23
|
def ssh
|
23
|
-
@ssh ||= Net::SSH.start(@ip,
|
24
|
+
@ssh ||= Net::SSH.start(@ip, @username,
|
25
|
+
config: false,
|
26
|
+
keys: [@identity_file],
|
27
|
+
paranoid: false)
|
24
28
|
end
|
25
29
|
|
26
30
|
def disconnect!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fsevents_to_vm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Palmer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb-fsevent
|