Sha256: 7b42d1de4c9a6210da14489f43a96c44cc0172767105168a4cdc6867f448e643
Contents?: true
Size: 928 Bytes
Versions: 7
Compression:
Stored size: 928 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 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
7 entries across 7 versions & 1 rubygems