Module: Fuci::Travis
- Extended by:
- Forwardable, Git
- Includes:
- Configurable
- Defined in:
- lib/fuci/travis.rb,
lib/fuci/travis/build.rb,
lib/fuci/travis/server.rb,
lib/fuci/travis/version.rb,
lib/fuci/travis/cli_options.rb,
lib/fuci/travis/build/master.rb,
lib/fuci/travis/build/generic.rb,
lib/fuci/travis/build/pull_request.rb,
lib/fuci/travis/build/sha_detectable.rb
Defined Under Namespace
Classes: Build, CliOptions, Server
Constant Summary collapse
- DEFAULT_CLIENT =
::Travis
- PRO_CLIENT =
::Travis::Pro
- VERSION =
'0.4.1'
Class Attribute Summary collapse
-
.access_token ⇒ Object
Returns the value of attribute access_token.
-
.default_branch ⇒ Object
Returns the value of attribute default_branch.
- .pro ⇒ Object
Class Method Summary collapse
Class Attribute Details
.access_token ⇒ Object
Returns the value of attribute access_token.
27 28 29 |
# File 'lib/fuci/travis.rb', line 27 def access_token @access_token end |
.default_branch ⇒ Object
Returns the value of attribute default_branch.
27 28 29 |
# File 'lib/fuci/travis.rb', line 27 def default_branch @default_branch end |
.pro ⇒ Object
44 45 46 |
# File 'lib/fuci/travis.rb', line 44 def self.pro @pro ||= false end |
Class Method Details
.configure ⇒ Object
48 49 50 51 52 |
# File 'lib/fuci/travis.rb', line 48 def self.configure super set_client set_access_token end |
.repo ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/fuci/travis.rb', line 32 def self.repo return @repo if @repo puts 'Finding repo...' puts remote_repo_name @repo = client::Repository.find remote_repo_name puts "Using repo: #{remote_repo_name}" @repo rescue puts "#{remote_repo_name} repo could not be found on Travis." exit end |