Sha256: 39ff6dea0bf87f8f18d19b16a63f7fb4fea81564d5a8aaf542f1441fa896119a

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

Capistrano::Configuration.instance.load do
  namespace :sphinx do
    desc "|capistrano-recipes| Generates Configuration file for TS"
    task :config, :roles => :app do
      run "cd #{current_path}; #{rake_bin} RAILS_ENV=#{rails_env} ts:config"
    end

    desc "|capistrano-recipes| Starts TS"
    task :start, :roles => :app do
      run "cd #{current_path}; #{rake_bin} RAILS_ENV=#{rails_env} ts:start"
    end

    desc "|capistrano-recipes| Stops TS"
    task :stop, :roles => :app do
      run "cd #{current_path}; #{rake_bin} RAILS_ENV=#{rails_env} ts:stop"
    end

    desc "|capistrano-recipes| Rebuild TS"
    task :rebuild, :roles => :app do
      run "cd #{current_path}; #{rake_bin} RAILS_ENV=#{rails_env} ts:rebuild"
    end

    desc "|capistrano-recipes| Indexes TS"
    task :index, :roles => :app do
      run "cd #{current_path}; #{rake_bin} RAILS_ENV=#{rails_env} ts:in"
    end

    desc "|capistrano-recipes| Re-establishes symlinks"
    task :symlinks do
      run <<-CMD
        rm -rf #{current_path}/db/sphinx && ln -nfs #{shared_path}/db/sphinx #{current_path}/db/sphinx
      CMD
    end
  end


end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dark-capistrano-recipes-0.8.4 lib/recipes/sphinx.rb
dark-capistrano-recipes-0.8.3 lib/recipes/sphinx.rb
dark-capistrano-recipes-0.8.2 lib/recipes/sphinx.rb
dark-capistrano-recipes-0.8.1 lib/recipes/sphinx.rb