stage-manager/Rakefile

32 lines
490 B
Ruby
Raw Permalink Normal View History

require 'bundler/setup'
require 'sequel'
require 'sqlite3'
namespace :db do
task :migrate do
%x{sequel -m 'db/migrations/' 'sqlite://data/stgm.db'}
end
task :import do
channel = ENV['channel']
puts %x{ruby scan.rb "#{channel}"}
end
end
namespace :server do
task :start do
system("bundle exec puma -C config/puma.rb")
end
task :reload do
%x{guard}
end
end
namespace :test do
task :rubocop do
system("rubocop app/ server.rb scan.rb")
end
end