Sha256: f877800cde6986de3d8b89c3415f9d8b6255a0a5e3f554a99e96c5a607c0039b
Contents?: true
Size: 1.37 KB
Versions: 6
Compression:
Stored size: 1.37 KB
Contents
# frozen_string_literal: true require 'erb' require 'pathname' require 'socket' require 'database_url' require 'erubis' require 'i18n' require 'paint' begin require 'rails' rescue LoadError warn('[orchestration] Running in non-Rails mode.') end I18n.load_path += Dir[File.join(File.expand_path('..', __dir__), 'config', 'locales', '**', '*.yml')] require 'orchestration/file_helpers' require 'orchestration/docker_compose' require 'orchestration/environment' require 'orchestration/errors' require 'orchestration/docker_healthcheck' require 'orchestration/install_generator' require 'orchestration/railtie' if defined?(Rails) require 'orchestration/service_check' require 'orchestration/services' require 'orchestration/settings' require 'orchestration/terminal' require 'orchestration/version' module Orchestration def self.root Pathname.new(File.dirname(__dir__)) end def self.makefile root.join('lib', 'orchestration', 'make', 'orchestration.mk') end def self.rakefile root.join('lib', 'Rakefile') end def self.error(key, options = {}) warn('# Orchestration Error') warn("# #{I18n.t("orchestration.#{key}", options)}") end def self.random_local_port socket = Socket.new(:INET, :STREAM, 0) socket.bind(Addrinfo.tcp('127.0.0.1', 0)) port = socket.local_address.ip_port socket.close port end end
Version data entries
6 entries across 6 versions & 1 rubygems