class Glue::URLMounter

Public Class Methods

new(trigger, options) click to toggle source
Calls superclass method Glue::BaseMounter::new
# File lib/glue/mounters/url_mounter.rb, line 6
def initialize trigger, options
  super(trigger)
  @options = options
  @name = "URL"
  @description = "Mount a url - typically for a live attack."
end

Public Instance Methods

mount(target) click to toggle source
# File lib/glue/mounters/url_mounter.rb, line 13
def mount target
  return target
end
supports?(target) click to toggle source
# File lib/glue/mounters/url_mounter.rb, line 17
def supports? target
  start = target.slice(0,4)
  last = target.slice(-4,target.length)
  if last === ".git"
    return false
  elsif start === "http"
    return true
  else
    return false
  end
end