class Yapra::Plugin::Config::BasicAuth
Config::BasicAuth – Yuanying
post to web page with WWW::Mechanize agent.
- module: Config::BasicAuth config: user: yuanying password: password-dayo
Public Instance Methods
run(data)
click to toggle source
# File lib-plugins/yapra/plugin/config/basic_auth.rb, line 14 def run(data) agent.basic_auth(config['user'], config['password']) data end