Module: Orchestration
- Defined in:
- lib/orchestration.rb,
lib/orchestration/errors.rb,
lib/orchestration/railtie.rb,
lib/orchestration/version.rb,
lib/orchestration/services.rb,
lib/orchestration/settings.rb,
lib/orchestration/terminal.rb,
lib/orchestration/environment.rb,
lib/orchestration/file_helpers.rb,
lib/orchestration/services/app.rb,
lib/orchestration/service_check.rb,
lib/orchestration/docker_compose.rb,
lib/orchestration/services/mongo.rb,
lib/orchestration/install_generator.rb,
lib/orchestration/services/database.rb,
lib/orchestration/services/listener.rb,
lib/orchestration/services/rabbitmq.rb,
lib/orchestration/docker_healthcheck.rb,
lib/orchestration/services/app/healthcheck.rb,
lib/orchestration/docker_compose/app_service.rb,
lib/orchestration/services/app/configuration.rb,
lib/orchestration/services/database/adapters.rb,
lib/orchestration/services/mongo/healthcheck.rb,
lib/orchestration/docker_compose/configuration.rb,
lib/orchestration/docker_compose/mongo_service.rb,
lib/orchestration/services/mongo/configuration.rb,
lib/orchestration/services/database/healthcheck.rb,
lib/orchestration/services/listener/healthcheck.rb,
lib/orchestration/services/rabbitmq/healthcheck.rb,
lib/orchestration/docker_compose/compose_helpers.rb,
lib/orchestration/docker_compose/database_service.rb,
lib/orchestration/docker_compose/rabbitmq_service.rb,
lib/orchestration/services/database/configuration.rb,
lib/orchestration/services/listener/configuration.rb,
lib/orchestration/services/rabbitmq/configuration.rb,
lib/orchestration/docker_compose/install_generator.rb,
lib/orchestration/services/mixins/healthcheck_base.rb,
lib/orchestration/services/mixins/http_healthcheck.rb,
lib/orchestration/services/database/adapters/mysql2.rb,
lib/orchestration/services/database/adapters/sqlite3.rb,
lib/orchestration/services/mixins/configuration_base.rb,
lib/orchestration/docker_compose/compose_configuration.rb,
lib/orchestration/services/database/adapters/postgresql.rb,
lib/orchestration/services/database/adapters/adapter_base.rb
Defined Under Namespace
Modules: DockerCompose, FileHelpers, Services
Classes: DatabaseConfigurationError, DockerHealthcheck, Environment, HTTPConnectionError, InstallGenerator, MongoConfigurationError, OrchestrationError, Railtie, ServiceCheck, Settings, Terminal, UnknownEnvironmentError
Constant Summary
collapse
- VERSION =
'0.6.6'
- COLOR_MAP =
{
failure: i[red bright],
success: i[green],
info: i[blue],
error: i[red],
ready: i[green],
create: i[green],
delete: i[red],
rename: i[blue],
update: i[yellow],
backup: i[blue],
status: i[blue],
setup: i[blue],
input: i[red],
skip: i[yellow bright],
waiting: i[yellow],
config: i[cyan]
}.freeze
Class Method Summary
collapse
Class Method Details
.error(key, options = {}) ⇒ Object
48
49
50
51
|
# File 'lib/orchestration.rb', line 48
def self.error(key, options = {})
warn('# Orchestration Error')
warn("# #{I18n.t("orchestration.#{key}", options)}")
end
|
.makefile ⇒ Object
40
41
42
|
# File 'lib/orchestration.rb', line 40
def self.makefile
root.join('lib', 'orchestration', 'make', 'orchestration.mk')
end
|
.rakefile ⇒ Object
44
45
46
|
# File 'lib/orchestration.rb', line 44
def self.rakefile
root.join('lib', 'Rakefile')
end
|
.random_local_port ⇒ Object
53
54
55
56
57
58
59
|
# File 'lib/orchestration.rb', line 53
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
|
.root ⇒ Object
36
37
38
|
# File 'lib/orchestration.rb', line 36
def self.root
Pathname.new(File.dirname(__dir__))
end
|