Sha256: d41249154adf6e4184334827bd5f97f42c5e515998123a2e498376a61ed4bed3
Contents?: true
Size: 997 Bytes
Versions: 1
Compression:
Stored size: 997 Bytes
Contents
module Sanford::Rake class Tasks extend ::Rake::DSL def self.load namespace :sanford do # Overwrite this to load your application's environment so that it can # be used with Sanford task :setup task :load_manager => :setup do require 'sanford' Sanford.init end desc "Start a Sanford server and daemonize the process" task :start => :load_manager do Sanford::Manager.call :start end desc "Stop a daemonized Sanford server process" task :stop => :load_manager do Sanford::Manager.call :stop end desc "Restart a daemonized Sanford server process" task :restart => :load_manager do Sanford::Manager.call :restart end desc "Run a Sanford server (not daemonized)" task :run => :load_manager do Sanford::Manager.call :run end end end end end Sanford::Rake::Tasks.load
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sanford-0.1.0 | lib/sanford/rake.rb |