lib/rsync_cron/cli.rb in rsync_cron-1.0.6 vs lib/rsync_cron/cli.rb in rsync_cron-1.0.7

- old
+ new

@@ -1,9 +1,9 @@ require "optparse" require "rsync_cron/host" require "rsync_cron/command" -require "rsync_cron/scheduler" +require "rsync_cron/installer" require "rsync_cron/cron" module RsyncCron class CLI SHELL = `which crontab`.strip @@ -21,10 +21,10 @@ return @io.puts "specify valid dest" unless @dest command = Command.new(src: @src, dest: @dest, log: @log, io: @io) return unless command.valid? if @check crontab = "#{@cron} #{command}" return @io.puts crontab unless @shell - Scheduler.new(crontab, @shell).call.tap do |res| + Installer.new(crontab, @shell).call.tap do |res| @io.puts "new crontab installed" if res end end private def parser