Class: Jackchop::Travis

Inherits:
Thor
  • Object
show all
Includes:
TravisAPI
Defined in:
lib/jackchop/cli/travis.rb

Constant Summary

Constants included from GithubAPI

GithubAPI::GIT_REGEX

Instance Method Summary collapse

Methods included from TravisAPI

#travis

Methods included from GithubAPI

#find_repo_name, #github, #github_auth_token

Instance Method Details

#enableObject

Raises:

  • (Thor::Error)


7
8
9
10
11
# File 'lib/jackchop/cli/travis.rb', line 7

def enable
	repo_name = find_repo_name
	raise Thor::Error, "It does not appear that this repo exists on github. Have you pushed it?" if repo_name.nil?
	travis.repo(repo_name).enable
end