Class: Travis::CLI::Logs
- Inherits:
-
RepoCommand
- Object
- Command
- ApiCommand
- RepoCommand
- Travis::CLI::Logs
- Includes:
- Tools::SafeString
- Defined in:
- lib/travis/cli/logs.rb
Constant Summary
Constants inherited from RepoCommand
Instance Attribute Summary
Attributes inherited from RepoCommand
Attributes inherited from ApiCommand
Attributes inherited from Command
#arguments, #config, #force_interactive, #formatter, #input, #output
Instance Method Summary collapse
Methods included from Tools::SafeString
Methods inherited from RepoCommand
Methods inherited from ApiCommand
#authenticate, #detected_endpoint?, #endpoint_config, #initialize, #org?, #pro?, #sync
Methods included from Travis::Client::Methods
#access_token, #access_token=, #accounts, #api_endpoint, #api_endpoint=, #artifact, #broadcasts, #build, #cancel, #explicit_api_endpoint?, #github_auth, #job, #listen, #repo, #repos, #restart, #user, #worker, #workers
Methods inherited from Command
abstract, abstract?, #check_ruby, #check_version, command_name, #command_name, #debug, description, #execute, #help, #info, #initialize, #last_check, #on_signal, #parse, #say, skip, #terminal, #usage, #write_to
Methods included from Parser
Constructor Details
This class inherits a constructor from Travis::CLI::ApiCommand
Instance Method Details
#run(number = last_build.number) ⇒ Object
16 17 18 19 |
# File 'lib/travis/cli/logs.rb', line 16 def run(number = last_build.number) error "##{number} is not a job, try #{number}.1" unless job = job(number) job.log.body { |part| print interactive? ? encoded(part) : clean(part) } end |
#setup ⇒ Object
10 11 12 13 |
# File 'lib/travis/cli/logs.rb', line 10 def setup super check_websocket end |