Sha256: f95a0fb3df7bcaa430dc31f5e1ee1c1d064fe6132f923c230235859a35072ef1

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

require 'orchestration'

namespace :orchestration do
  desc I18n.t('orchestration.rake.install')
  task :install do
    Orchestration::InstallGenerator.start
  end

  namespace :app do
    desc I18n.t('orchestration.rake.app.wait')
    task :wait do
      Orchestration::Services::App::Healthcheck.start
    end
  end

  namespace :database do
    desc I18n.t('orchestration.rake.database.wait')
    task :wait do
      Orchestration::Services::Database::Healthcheck.start
    end
  end

  namespace :mongo do
    desc I18n.t('orchestration.rake.mongo.wait')
    task :wait do
      Orchestration::Services::Mongo::Healthcheck.start
    end
  end

  namespace :rabbitmq do
    desc I18n.t('orchestration.rake.rabbitmq.wait')
    task :wait do
      Orchestration::Services::RabbitMQ::Healthcheck.start
    end
  end

  namespace :listener do
    desc I18n.t('orchestration.rake.listener.wait')
    task :wait do
      Orchestration::Services::Listener::Healthcheck.start(
        nil, nil, service_name: ENV.fetch('service')
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
orchestration-0.3.17 lib/tasks/orchestration.rake
orchestration-0.3.16 lib/tasks/orchestration.rake
orchestration-0.3.15 lib/tasks/orchestration.rake