8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/gist_cleaner.rb', line 8
def self.run()
puts "input username"
username = gets.chomp
if username.empty?
puts "invalid username"
return
end
puts "input password"
password = gets.chomp
if password.empty?
puts "invalid password"
return
end
puts 'enabled two-factor authentication? input optcode OR press the enter to continue'
otpcode = gets.chomp
@cleaner = Cleaner.new(username, password, otpcode)
puts 'checking gists...'
@cleaner.check_gists()
@cleaner.delete_gists()
end
|