Sha256: e0e11de34bf97064303a2574d23016a96efdcc9f93d81efe29fae8442ea2ce9b

Contents?: true

Size: 1.56 KB

Versions: 11

Compression:

Stored size: 1.56 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 :install do
    desc I18n.t('orchestration.rake.install_makefile')
    task :makefile do
      Orchestration::InstallGenerator.new.orchestration_makefile
    end
  end

  namespace :app do
    desc I18n.t('orchestration.rake.app.wait')
    task :wait do
      Orchestration::Services::App::Healthcheck.start(
        nil, nil, config_path: ENV['config'], service_name: ENV['service']
      )
    end
  end

  namespace :database do
    desc I18n.t('orchestration.rake.database.wait')
    task :wait do
      Orchestration::Services::Database::Healthcheck.start(
        nil, nil, config_path: ENV['config'], service_name: ENV['service']
      )
    end
  end

  namespace :mongo do
    desc I18n.t('orchestration.rake.mongo.wait')
    task :wait do
      Orchestration::Services::Mongo::Healthcheck.start(
        nil, nil, config_path: ENV['config'], service_name: ENV['service']
      )
    end
  end

  namespace :rabbitmq do
    desc I18n.t('orchestration.rake.rabbitmq.wait')
    task :wait do
      Orchestration::Services::RabbitMQ::Healthcheck.start(
        nil, nil, config_path: ENV['config'], service_name: ENV['service']
      )
    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

11 entries across 11 versions & 1 rubygems

Version Path
orchestration-0.4.20 lib/tasks/orchestration.rake
orchestration-0.4.19 lib/tasks/orchestration.rake
orchestration-0.4.18 lib/tasks/orchestration.rake
orchestration-0.4.17 lib/tasks/orchestration.rake
orchestration-0.4.16 lib/tasks/orchestration.rake
orchestration-0.4.15 lib/tasks/orchestration.rake
orchestration-0.4.14 lib/tasks/orchestration.rake
orchestration-0.4.13 lib/tasks/orchestration.rake
orchestration-0.4.12 lib/tasks/orchestration.rake
orchestration-0.4.10 lib/tasks/orchestration.rake
orchestration-0.4.9 lib/tasks/orchestration.rake