class Account
Public Class Methods
caperoma()
click to toggle source
# File lib/caperoma/models/account.rb, line 14 def self.caperoma where(type: '--caperoma').first end
git()
click to toggle source
# File lib/caperoma/models/account.rb, line 30 def self.git where(type: '--git').first end
gmail()
click to toggle source
# File lib/caperoma/models/account.rb, line 26 def self.gmail where(type: '--gmail').first end
jira()
click to toggle source
# File lib/caperoma/models/account.rb, line 18 def self.jira where(type: '--jira').first end
pivotal()
click to toggle source
# File lib/caperoma/models/account.rb, line 22 def self.pivotal where(type: '--pivotal').first end
Private Instance Methods
destroy_others()
click to toggle source
# File lib/caperoma/models/account.rb, line 36 def destroy_others Account.where(type: type).destroy_all end
inform_creation_finished()
click to toggle source
# File lib/caperoma/models/account.rb, line 44 def inform_creation_finished puts 'Credentials saved' end
inform_creation_started()
click to toggle source
# File lib/caperoma/models/account.rb, line 40 def inform_creation_started puts 'Saving credentials' end