class Travis::CLI::Enable
Public Instance Methods
run()
click to toggle source
# File lib/travis/cli/enable.rb, line 9 def run authenticate error "not allowed to update service hook for #{color(repository.slug, :bold)}" unless repository.admin? repository.enable say "enabled", color("#{slug}: %s :)", :success) end
Private Instance Methods
repository()
click to toggle source
Calls superclass method
# File lib/travis/cli/enable.rb, line 18 def repository repo(slug) rescue Travis::Client::NotFound unless skip_sync? say "repository not known to Travis CI (or no access?)" say "triggering sync: " sync say " done" end super end