class Looks::Command::Config
Public Instance Methods
execute(args)
click to toggle source
# File lib/looks/command/config.rb, line 11 def execute(args) highline = HighLine.new address = highline.ask(" Email address: ") password = highline.ask(" Password: ") { |q| q.echo = '*' } config.address = address config.password = password begin config.save rescue IOError, SystemCallError raise Error, "#{Looks::Config.filename}: Cannot write file" end end