fsevents_to_vm 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c593568f83e0c594792bedcd1d1edee22bdb16c
4
- data.tar.gz: 0d96d92e28e2f189e9d77daa34d719f086360307
3
+ metadata.gz: 1911f89027d433ab2fb5bd0e3656032d7dc85a06
4
+ data.tar.gz: 3e60b84628bf6a1507c477427a54c3c3443f9f57
5
5
  SHA512:
6
- metadata.gz: bb2f79df416d0290884a7631f1db311d1677a5c5475f89d11dc79515d755fca82e217eedd4e492a191137e5129a8d7b7d682e58209c962528b932f805795e417
7
- data.tar.gz: c32a880014f839db86d30f9536ad5bc2b4e6ceb016b76e36b764b019506e95ba4271539a7b2c32f52bd17eae57a0df74dc0061d96063794ce6671967ec0053ca
6
+ metadata.gz: 911087d1ecb8feb7591e395797d4b771476753c57ce7f44ad7f7ddcba35723ef069811bf128f402bb4af394f643ad1621f29a74f5c53beda97b6f4a113c40869
7
+ data.tar.gz: bfd52e31304ebe7c41a24adf563d5a489e72d337606a27e9b66d00875cc23c845a5d341337f2213a1c6cf6ce2c19b11fdbe4c71ddad74a29438281b88214c8e0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 1.1.1 - 2016-01-21
5
+
6
+ ### Added
7
+ - Allow specifying the ssh username
8
+
4
9
  ## 1.1.0 - 2016-01-07
5
10
 
6
11
  ### 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, 'docker', config: false, keys: [@identity_file])
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!
@@ -1,3 +1,3 @@
1
1
  module FseventsToVm
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2016-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb-fsevent