class Travis::CLI::Sync
Public Instance Methods
run()
click to toggle source
# File lib/travis/cli/sync.rb, line 12 def run authenticate if check? say "#{"not " unless user.syncing?}syncing", "#{user.login} is currently %s" elsif user.syncing? and not force? error "user is already syncing" elsif background? say "starting synchronization" sync(false) else say "synchronizing: " sync say color(" done", :success) end end