Sha256: 699344566ebe7df276ce5ea6e6f35662396e3449fbb54566642c5dfaabb646aa

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

desc "Check broken links"
task :check_links do
  require 'rawler'
  require 'active_support/core_ext'
  require 'howitzer/helpers'

  log.settings_as_formatted_text
  opts = {
      wait: 0.1,
      logfile: File.expand_path(settings.rawler_log, settings.log_dir)
  }
  opts[:username] = settings.app_base_auth_login unless settings.app_base_auth_login.blank?
  opts[:password] = settings.app_base_auth_pass unless settings.app_base_auth_pass.blank?
  Rawler::Base.new(app_base_url, $stdout, opts).validate
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
howitzer-1.0.1 generators/tasks/templates/common.rake