Sha256: 16403acc0ccdc956541a43e8978600b756435d32ce5ec775652af79856002c00

Contents?: true

Size: 703 Bytes

Versions: 3

Compression:

Stored size: 703 Bytes

Contents

require 'bundler/gem_tasks'
$stdout.sync = true

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)

  rails_task = RSpec::Core::RakeTask.new(:rails_specs)
  rails_task.pattern = 'spec/shoryuken/{environment_loader_spec,extensions/active_job_*}.rb'
rescue LoadError
end

desc 'Open Shoryuken pry console'
task :console do
  require 'pry'
  require 'shoryuken'

  config_file = File.join File.expand_path(__dir__), 'shoryuken.yml'

  if File.exist? config_file
    config = YAML.load File.read(config_file)

    Aws.config = config['aws']
  end

  def push(queue, message)
    Shoryuken::Client.queues(queue).send_message(message_body: message)
  end

  ARGV.clear
  Pry.start
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoryuken-5.2.0 Rakefile
shoryuken-5.1.1 Rakefile
shoryuken-5.1.0 Rakefile