Skip to content

Commit

Permalink
Change variables names and translated to english
Browse files Browse the repository at this point in the history
  • Loading branch information
nico01f committed Nov 23, 2015
1 parent 6537960 commit 298f190
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gmail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
require 'yaml'


CREDENCIAL = YAML.load_file("credencial.yml") unless defined? CREDENCIAL
ACCOUNT = YAML.load_file("account.yml") unless defined? ACCOUNT

#Conecta con Gmail
def conecta_gmail (email, pass)
g = Gmail.connect(email, pass)
if g.logged_in? == true
puts "Conectado!".green
puts "Connected!".green
else
puts "No conectado!".red
puts "Doh! Not connected".red
end
end


def info_credencial()
puts "Usuario: #{CREDENCIAL['correo']}"
puts "Clave: #{CREDENCIAL['clave']}"
conecta_gmail(CREDENCIAL['correo'], CREDENCIAL['clave'])
puts "Usuario: #{ACCOUNT['email']}"
puts "Clave: #{ACCOUNT['password']}"
conecta_gmail(ACCOUNT['email'], ACCOUNT['password'])
end

info_credencial()
Expand Down

0 comments on commit 298f190

Please sign in to comment.