Sha256: a6113ec4040d2e0ae5a736fd2a37cd3f11befa9e9d67c5f1ebf7df1115a421c1

Contents?: true

Size: 689 Bytes

Versions: 4

Compression:

Stored size: 689 Bytes

Contents

class WebsiteDeployFailed < Exception 
end

class WebsiteDeployVerifier

  attr_accessor :url, :type

  def initialize(downloader = Downloader.new)
    @downloader = downloader
    debugger
  end

  def execute()
    debugger
    raise "Url not specified" if @url.nil?
    raise "Application type not specified" if @type.nil?
    
    if (@downloader.download(@url) =~ /<title>Exception of type '.*' was thrown<\title>/) != nil

      raise WebsiteDeployFailed
    end
    true
  end
end

class WebsiteRegexs

  def self.aspnet()
    "<title>Exception of type '.*' was thrown.</title>"   
  end

end

class Downloader
  def download(url)
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
seabass-0.2.4 lib/seabass/website_deploy_verifier.rb
seabass-0.2.2 lib/seabass/website_deploy_verifier.rb
seabass-0.2.1 lib/seabass/website_deploy_verifier.rb
seabass-0.2.0 lib/seabass/website_deploy_verifier.rb