Sha256: e687e78a3fb718165d09fc5e059f19ebc5d48b41753ec1652e6998a51495bdf7

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"
require 'rspec/core/rake_task'

desc "Run all specs with default options"
RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = %w[--color]
  t.verbose = false
end

desc "Run specs with TCP socket"
RSpec::Core::RakeTask.new("spec:tcp") do |t|
  ENV['SOCKET_TYPE'] = 'tcp'
  t.rspec_opts = %w[--color]
  t.verbose = false
end

desc "Run specs with UDP socket"
RSpec::Core::RakeTask.new("spec:udp") do |t|
  ENV['SOCKET_TYPE'] = 'udp'
  t.rspec_opts = %w[--color]
  t.verbose = false
end

task :default => ["spec:tcp", "spec:udp"]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
logstash-logger-0.4.1 Rakefile
logstash-logger-0.4.0 Rakefile
logstash-logger-0.3.0 Rakefile