Module: Corn

Includes:
Config
Defined in:
lib/corn.rb,
lib/corn/post.rb,
lib/corn/config.rb,
lib/corn/profiler.rb,
lib/corn/rack/request_env.rb,
lib/corn/rack/slow_request_profiler.rb,
lib/generators/corn/config/config_generator.rb

Defined Under Namespace

Modules: Config, Generators, Rack Classes: Post, Profiler

Class Method Summary collapse

Methods included from Config

included

Class Method Details

.configured?Boolean

Returns:

  • (Boolean)


42
43
44
45
46
47
48
49
50
# File 'lib/corn.rb', line 42

def configured?
  if host.nil? || host.empty?
    Corn.logger.info("Corn host not found")
  end
  if client_id.nil? || client_id.empty?
    Corn.logger.info("Corn client id not found")
  end
  !!(host && client_id)
end

.submit_urlObject



52
53
54
# File 'lib/corn.rb', line 52

def submit_url
  File.join(host, 'profiling_data')
end