Module: GistCleaner

Defined in:
lib/gist_cleaner.rb,
lib/gist_cleaner/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.runObject



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

Instance Method Details

#initializeObject



5
6
# File 'lib/gist_cleaner.rb', line 5

def initialize()
end