class Pechkin::Command::AddAuth
Read user:password combination and write it to htpasswd file. If file already contains user then record will be replaced
Public Instance Methods
execute()
click to toggle source
# File lib/pechkin/command/add_auth.rb, line 10 def execute user, password = options.add_auth.split(':') Pechkin::Auth::Manager.new(options.htpasswd).add(user, password) puts IO.read(options.htpasswd) end
matches?()
click to toggle source
# File lib/pechkin/command/add_auth.rb, line 6 def matches? options.add_auth end