lib/attractor/cli.rb in attractor-0.3.2 vs lib/attractor/cli.rb in attractor-0.3.3

- old
+ new

@@ -42,16 +42,16 @@ option :file_prefix, aliases: :p option :watch, aliases: :w, type: :boolean def serve if options[:watch] puts 'Listening for file changes...' - Attractor::RackReporter.new(file_prefix: options[:file_prefix]).watch + Attractor::SinatraReporter.new(file_prefix: options[:file_prefix]).watch else case options[:format] when 'html' - Attractor::RackReporter.new(file_prefix: options[:file_prefix]).report + Attractor::SinatraReporter.new(file_prefix: options[:file_prefix]).report else - Attractor::RackReporter.new(file_prefix: options[:file_prefix]).report + Attractor::SinatraReporter.new(file_prefix: options[:file_prefix]).report end end end end end