Sha256: 0fc44e36ef9633a350c4a3bfa535c0043039197e9e9ce846c00d5854f86d9f8b

Contents?: true

Size: 646 Bytes

Versions: 20

Compression:

Stored size: 646 Bytes

Contents

class Shelly::Client
  def application_logs(cloud, options = {})
    get("/apps/#{cloud}/application_logs#{query(options)}")
  end

  def application_logs_tail(cloud)
    url = get("/apps/#{cloud}/application_logs/tail")["url"]
    options = {
      :url            => url,
      :method         => :get,
      :timeout        => 60 * 60 * 24,
      :block_response => Proc.new { |r| r.read_body { |c| yield(c) } }
    }.merge(http_basic_auth_options)
    RestClient::Request.execute(options)
  end

  def download_application_logs_attributes(code_name, options)
    get("/apps/#{code_name}/application_logs/download#{query(options)}")
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
shelly-0.5.7 lib/shelly/client/application_logs.rb
shelly-0.5.6 lib/shelly/client/application_logs.rb
shelly-0.5.5 lib/shelly/client/application_logs.rb
shelly-0.5.4 lib/shelly/client/application_logs.rb
shelly-0.5.3 lib/shelly/client/application_logs.rb
shelly-0.5.2 lib/shelly/client/application_logs.rb
shelly-0.5.1 lib/shelly/client/application_logs.rb
shelly-0.5.0 lib/shelly/client/application_logs.rb
shelly-0.4.42 lib/shelly/client/application_logs.rb
shelly-0.4.41 lib/shelly/client/application_logs.rb
shelly-0.4.40 lib/shelly/client/application_logs.rb
shelly-0.4.39 lib/shelly/client/application_logs.rb
shelly-0.4.38 lib/shelly/client/application_logs.rb
shelly-0.4.37 lib/shelly/client/application_logs.rb
shelly-0.4.36 lib/shelly/client/application_logs.rb
shelly-0.4.35 lib/shelly/client/application_logs.rb
shelly-0.4.34 lib/shelly/client/application_logs.rb
shelly-0.4.33 lib/shelly/client/application_logs.rb
shelly-0.4.32 lib/shelly/client/application_logs.rb
shelly-0.4.31 lib/shelly/client/application_logs.rb