Class: Zillabyte::API::Logs

Inherits:
Base
  • Object
show all
Defined in:
lib/zillabyte/api/logs.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #request

Methods included from Helpers

#app, #ask, #command, #create_git_remote, #display, #error, #extract_app_from_git_config, #extract_app_in_dir, #format_with_bang, #friendly_dir, #get_flow_ui_link, #get_info, #get_rich_info, #git, #handle_downloading_manifest, #has_git?, #longest, #read_multiline, #truncate_message, #version_okay?, #with_tty

Constructor Details

This class inherits a constructor from Zillabyte::API::Base

Instance Method Details

#get(app_id, operation_id, options = {}, &block) ⇒ Object

GET /flows/ID/logs



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/zillabyte/api/logs.rb', line 6

def get(app_id, operation_id, options = {}, &block)
  
  options = {
  }.merge(options)
 
  res = @api.request({
    :expects  => 200,
    :method   => :get,
    :path     => "/flows/#{app_id}/logs",
    :body     => options.to_json
  }, &block)

  res.body

end

#get_startup(app_id, operation_id, options = {}, &block) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/zillabyte/api/logs.rb', line 24

def get_startup(app_id, operation_id, options = {}, &block)
  
  options = {
  }.merge(options)
 
  res = @api.request({
    :expects  => 200,
    :method   => :get,
    :path     => "/flows/#{app_id}/logs/#{operation_id}/startup",
    :body     => options.to_json
  }, &block)

  res.body

end