class Rowr::CommandLine
Public Instance Methods
continue()
click to toggle source
# File lib/rowr/command_line.rb, line 19 def continue rowr = Rowr::Resurrector.new rowr.continue end
reset()
click to toggle source
# File lib/rowr/command_line.rb, line 27 def reset rowr = Rowr::Resurrector.new rowr.reset end
start()
click to toggle source
# File lib/rowr/command_line.rb, line 11 def start rowr = Rowr::Resurrector.new rowr.start end
test(file)
click to toggle source
# File lib/rowr/command_line.rb, line 35 def test(file) return unless File.exist? File.expand_path(file) f = File.expand_path(file) rowr = Rowr::Resurrector.new rowr.options.source_directory = File.dirname(f) rowr.prompt_user_for_option 'old_host?' rowr.prompt_user_for_option 'new_base_path?' rowr.prompt_user_for_option 'check_external_urls?' rowr.init_link_processor rowr.link_processor.containing_file = f text = File.read(f) unless text.valid_encoding? text = text.encode('UTF-16be', :invalid=>:replace, :replace=>' ').encode('UTF-8') end text = rowr.clean_no_quotes(text) rowr.check_urls(text) end