Sha256: d809ae3caf8966647b14aa359db3d36e53170d35c374e6fb6b7c27070748ef60
Contents?: true
Size: 944 Bytes
Versions: 4
Compression:
Stored size: 944 Bytes
Contents
## These tasks get loaded into the host application when jettywrapper is required require 'yaml' namespace :jetty do desc "Return the status of jetty" task :status => :environment do status = Jettywrapper.is_jetty_running?(JETTY_CONFIG) ? "Running: #{Jettywrapper.pid(JETTY_CONFIG)}" : "Not running" puts status end desc "Start jetty" task :start => :environment do Jettywrapper.start(JETTY_CONFIG) puts "jetty started at PID #{Jettywrapper.pid(JETTY_CONFIG)}" end desc "stop jetty" task :stop => :environment do Jettywrapper.stop(JETTY_CONFIG) puts "jetty stopped" end desc "Restarts jetty" task :restart => :environment do Jettywrapper.stop(JETTY_CONFIG) Jettywrapper.start(JETTY_CONFIG) end desc "Load the jetty config" task :environment do unless defined? JETTY_CONFIG JETTY_CONFIG = Jettywrapper.load_config end end end namespace :repo do end
Version data entries
4 entries across 4 versions & 1 rubygems