Sha256: 6f623c866b788ebfa98b61373abf67991c5d1c2135fd446e15c8fa2277122ea7

Contents?: true

Size: 531 Bytes

Versions: 4

Compression:

Stored size: 531 Bytes

Contents

# Ferret DRb server Capistrano tasks
# Usage:
# Add require 'vendor/plugins/acts_as_ferret/lib/ferret_cap_tasks' to your
# config/deploy.rb
# call ferret.restart where you restart your Mongrels.
# ferret.stop and ferret.start are available, too.
module FerretCapTasks
  def start
    run "cd #{current_path}; RAILS_ENV=production script/ferret_start"
  end

  def stop
    run "cd #{current_path}; RAILS_ENV=production script/ferret_stop"
  end

  def restart
    stop
    start
  end
end
Capistrano.plugin :ferret, FerretCapTasks

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sdsykes_acts_as_ferret-0.4.3.1 lib/ferret_cap_tasks.rb
acts_as_ferret-0.4.1 lib/ferret_cap_tasks.rb
acts_as_ferret-0.4.2 lib/ferret_cap_tasks.rb
acts_as_ferret-0.4.3 lib/ferret_cap_tasks.rb