lib/teaspoon/exporter.rb in teaspoon-0.9.1 vs lib/teaspoon/exporter.rb in teaspoon-1.0.0
- old
+ new
@@ -10,11 +10,11 @@
def export
Dir.mktmpdir do |temp_path|
Dir.chdir(temp_path) do
%x{#{executable} --convert-links --adjust-extension --page-requisites --span-hosts #{@url.shellescape} 2>&1}
- raise Teaspoon::ExporterException, "Unable to export #{@suite} suite." unless $?.exitstatus == 0
+ raise Teaspoon::DependencyError.new("Unable to export #{@suite} suite.") unless $?.exitstatus == 0
create_export(File.join(temp_path, @url.match(/^http:\/\/([^\/]+).*/)[1]))
end
end
end
@@ -22,10 +22,10 @@
def executable
return @executable if @executable
@executable = which("wget")
return @executable unless @executable.blank?
- raise Teaspoon::MissingDependency, "Could not find wget for exporting."
+ raise Teaspoon::MissingDependencyError.new("Unable to locate `wget` for exporter.")
end
def create_export(path)
Dir.chdir(path) do
update_relative_paths