Sha256: 1cc0361a78a8e7b2e9643a73c995c0880c17d28ab470f4dc095384edfd7b8df5
Contents?: true
Size: 619 Bytes
Versions: 19
Compression:
Stored size: 619 Bytes
Contents
require 'travis/cli' module Travis module CLI class Enable < RepoCommand on('-s', '--skip-sync', "don't trigger a sync if the repo is unknown") def run authenticate repository.enable say "enabled", color("#{slug}: %s :)", :success) end private 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 end end end
Version data entries
19 entries across 19 versions & 1 rubygems