Sha256: 61a718c085fc29b6e8b4ca3254c229dfab03e87dce27cc03f8fe27c7a25c310b

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

class MissingRootDirectory < StandardError
  def initialize(site, port)
    @port = (port == 80 ? nil : port)
    @site = site
    super()
  end
  
  def error
    ["The root directory for #{@site.name} is missing"]
  end
  
  def description
    "You can <a href='http://yodel#{':' if @port}#{@port}/sites?id=#{@site.id}'>select a new root directory</a>, or rename the existing directory back to '#{File.basename(@site.root_directory)}'."
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yodel-0.0.7 lib/yodel/exceptions/missing_root_directory.rb
yodel-0.0.4 lib/yodel/exceptions/missing_root_directory.rb
yodel-0.0.3 lib/yodel/exceptions/missing_root_directory.rb
yodel-0.0.2 lib/yodel/exceptions/missing_root_directory.rb
yodel-0.0.1 lib/yodel/exceptions/missing_root_directory.rb