Sha256: 899b5ecf3f0bb4bb23da541bc6d5c86c62b1e2101fc4aaa1af6068867faf5ff2

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

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

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

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

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

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

    desc "|DarkRecipes| 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

2 entries across 2 versions & 2 rubygems

Version Path
capistrano-recipes-0.8.0 lib/recipes/sphinx.rb
dark-capistrano-recipes-0.7.2 lib/recipes/sphinx.rb