Sha256: 7c6220466603fa857e2fe2409518a74fd47d62ab6e9368fef647cdafeaf1b0f1

Contents?: true

Size: 1.75 KB

Versions: 1

Compression:

Stored size: 1.75 KB

Contents

# require external libraries
require 'rake'
require 'dotenv'
require 'logging'
require 'octokit'
require 'grape'
require 'grape-entity'
require 'json'

# require internal files
require 'service_template/setup'
require 'service_template/version'
require 'service_template/logger/logger'
require 'service_template/logger/log_transaction'
require 'service_template/logger/parseable'
require 'service_template/identity'
require 'service_template/json_error'
require 'service_template/stats'
require 'service_template/stats_d_timer'
require 'service_template/active_record_extensions/stats'
require 'service_template/active_record_extensions/seeder'
require 'service_template/grape_extensions/error_formatter'
require 'service_template/grape_extensions/grape_helpers'
require 'service_template/output_formatters/entity'
require 'service_template/output_formatters/include_nil'
require 'service_template/output_formatters/json_api_representer'
require 'service_template/grape_extenders'
require 'service_template/middleware/logger'
require 'service_template/middleware/app_monitor'
require 'service_template/middleware/authentication'
require 'service_template/middleware/request_stats'
require 'service_template/middleware/database_stats'
require 'service_template/authentication'
require 'service_template/sortable_api'

require 'service_template/deploy'
require 'service_template/gem_dependency'

# load rake tasks if Rake installed
if defined?(Rake)
  load 'tasks/deploy.rake'
  load 'tasks/routes.rake'
end

module ServiceTemplate
  class << self
    def initialize
      unless ServiceTemplate.skip_initialization
        ServiceTemplate::Logger.logger.info ServiceTemplate::GemDependency.log_all if ServiceTemplate.env.production?
      end
    end
  end
end

ServiceTemplate.initialize

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
service_template-0.5.0 lib/service_template.rb