class PF::BoxAccountCommand
Public Instance Methods
add(name, client_id, client_secret)
click to toggle source
# File lib/pf/cli/box_account.rb, line 13 def add(name, client_id, client_secret) BoxAction.add_account(name, client_id, client_secret) end
list()
click to toggle source
# File lib/pf/cli/box_account.rb, line 20 def list() box = Profile.box default_account = box.default_account puts "box accounts(#{box.accounts.size}):" puts box.accounts.each do |account| if account.name == default_account print " * " else print " " end puts account.name end end
rm(account_name)
click to toggle source
# File lib/pf/cli/box_account.rb, line 36 def rm(account_name) BoxAction.remove_account(account_name) end