lib/command/send.rb in narou-2.6.1 vs lib/command/send.rb in narou-2.7.0
- old
+ new
@@ -73,11 +73,11 @@
unless device.connecting?
error "#{device.display_name} が接続されていません"
exit Narou::EXIT_ERROR_CODE
end
- @options["hotentry"] = Inventory.load("local_setting", :local)["hotentry"]
+ @options["hotentry"] = Inventory.load("local_setting")["hotentry"]
send_all = false
titles = {}
if argv.empty?
send_all = true
Database.instance.each do |id, data|
@@ -150,10 +150,10 @@
if send_all && @options["backup-bookmark"]
process_backup_bookmark(device)
end
rescue Device::SendFailure, Interrupt
puts "送信を中断しました"
- exit Narou::EXIT_ERROR_CODE
+ exit Narou::EXIT_INTERRUPT
end
def process_backup_bookmark(device)
device.extend(device.get_hook_module)
unless device.respond_to?(:backup_bookmark)