Sha256: 05bb0564ba3191b49e197e07815ac95f99af368551d0ea491139ec7196494039

Contents?: true

Size: 786 Bytes

Versions: 4

Compression:

Stored size: 786 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'yard'

def shell(*args)
  puts "running: #{args.join(' ')}"
  system(args.join(' '))
end

task :clean do 
  shell('rm -rf pkg/ tmp/ coverage/ doc/ s' )
end

task :gem => [:build] do
  shell('gem install pkg/*')
end

task :permissions => [ :clean ] do 
  shell("chmod -v o+r,g+r * */* */*/* */*/*/* */*/*/*/* */*/*/*/*/*")
  shell("find . -type d -exec chmod o+x,g+x {} \\;")
end

task :build => :permissions

YARD::Rake::YardocTask.new(:doc) do |t|
  t.files = %w(lib/**/*.rb exe/*.rb - README.md LICENSE.txt)
  t.options.unshift('--title','Sidekiq Cluster — The Missing Multi-Process Sidekiq Manager')
  t.after = ->() { exec('open doc/index.html') }
end

RSpec::Core::RakeTask.new(:spec)

task :default => :spec


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sidekiq-cluster-0.1.2 Rakefile
sidekiq-cluster-0.1.1 Rakefile
sidekiq-cluster-0.1.0 Rakefile
sidekiq-cluster-0.0.1 Rakefile