Sha256: 23e2e2911ac39d1e7f0e27c10b260c18689c52f3877a522ff7b22988aade027c

Contents?: true

Size: 479 Bytes

Versions: 2

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

require 'phobos'
require 'phobos/cli'

namespace :deimos do
  desc 'Starts Deimos in the rails environment'
  task start: :environment do
    Deimos.configure do |config|
      config.publish_backend = :kafka_sync if config.publish_backend == :kafka_async
    end
    ENV['DEIMOS_RAKE_TASK'] = 'true'
    STDOUT.sync = true
    Rails.logger.info('Running deimos:start rake task.')
    Phobos::CLI::Commands.start(%w(start --skip_config))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deimos-kafka-1.0.0.pre.beta16 lib/tasks/deimos.rake
deimos-kafka-1.0.0.pre.beta15 lib/tasks/deimos.rake