lib/ronin/sessions/web.rb in ronin-0.0.9 vs lib/ronin/sessions/web.rb in ronin-0.1.0
- old
+ new
@@ -27,20 +27,12 @@
module Ronin
module Sessions
module Web
include Session
- WEB_SESSION = proc do
+ setup_session do
parameter :web_proxy, :value => Ronin::Web.proxy, :description => 'Web Proxy'
parameter :web_user_agent, :value => Ronin::Web.user_agent, :description => 'Web User-Agent'
- end
-
- def self.included(base)
- Session.setup_class(base,&WEB_SESSION)
- end
-
- def self.extended(obj)
- Session.setup_object(obj,&WEB_SESSION)
end
protected
def web_agent(options={},&block)