lib/nanoc/cli/commands/sync.rb in nanoc-3.7.4 vs lib/nanoc/cli/commands/sync.rb in nanoc-3.7.5

- old
+ new

@@ -6,13 +6,11 @@ Sync data source data. This command is useful for updating local item caches for data sources which rely on slow external APIs. EOS module Nanoc::CLI::Commands - class Sync < ::Nanoc::CLI::CommandRunner - def run # Check arguments if arguments.size != 0 raise Nanoc::Errors::GenericTrivial, "usage: #{command.usage}" end @@ -26,11 +24,9 @@ puts "Syncing #{data_source.config[:type]} data source: #{data_source.items_root}" data_source.sync end end end - end - end runner Nanoc::CLI::Commands::Sync