Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/snapsync/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def init(*args)
option :config_file, default: '/etc/snapsync.conf',
desc: 'the configuration file that should be updated'
def auto_add(name, dir)
uuid, mountpoint, relative = partition_of(Snapsync::path(dir))
uuid, mountpoint, relative = partition_of(dir)
conf_path = Pathname.new(options[:config_file])

autosync = AutoSync.new snapsync_config_file: conf_path
Expand Down
2 changes: 1 addition & 1 deletion lib/snapsync/partitions_monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PartitionsMonitor

# @param [RemotePathname] machine Remote machine to connect to
def initialize(machine = nil)
if machine.nil?
if machine.nil? | machine.is_a?(LocalPathname)
dbus = DBus::SystemBus.instance
else
sock_path = '/tmp/snapsync_%04d_remote.sock' % rand(10000)
Expand Down