Class: Travis::Client
- Inherits:
-
Object
- Object
- Travis::Client
- Defined in:
- lib/travis/client.rb,
lib/travis/client/repositories.rb
Overview
Travis Command Line Client
Direct Known Subclasses
Defined Under Namespace
Classes: Repositories
Class Method Summary (collapse)
-
+ (Object) status
Tries to guess the repository based on the git remote urls and prints its status.
Instance Method Summary (collapse)
-
- (Object) run
Handles the given options and executes the requested command.
Class Method Details
+ (Object) status
Tries to guess the repository based on the git remote urls and prints its status. If several remote repositories are defined it will display the status of each of them.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/travis/client.rb', line 18 def self.status ARGV[0] = 'repositories' slugs = target_repository_slugs() if slugs.length > 1 ARGV << "--slugs=#{target_repository_slugs().join(',')}" else ARGV << "--slug=#{target_repository_slugs().first}" end Repositories.new.run end |
Instance Method Details
- (Object) run
Handles the given options and executes the requested command
30 31 32 33 |
# File 'lib/travis/client.rb', line 30 def run () execute_operation() end |