Sha256: 94ae44036c181d8179b8a55e0868954a1f600d8b1f4f935f5b66f99583e1ee50
Contents?: true
Size: 1.22 KB
Versions: 16
Compression:
Stored size: 1.22 KB
Contents
## These tasks get loaded into the host application when jettywrapper is required require 'yaml' namespace :jetty do JETTY_DIR = 'jetty' desc "download the jetty zip file" task :download do Jettywrapper.download end desc "unzip the downloaded jetty archive" task :unzip do Jettywrapper.unzip end desc "remove the jetty directory and recreate it" task :clean do Jettywrapper.clean end 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
16 entries across 16 versions & 1 rubygems