Sha256: 77765be6ae942847f21e72927b596c8d31de3266d1564e5c6515a94e83d1e25c

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

require 'deprec-core'
Capistrano::Configuration.instance(:must_exist).load do 
  namespace :deprec do
    namespace :php do
      
      desc "Install PHP"
      task :install do
        install_deps
      end
      
      # Install dependencies for php
      task :install_deps do
        apt.install( {:base => %w(php5 php5-mysql)}, :stable )
      end
      
      desc "generate config file for php"
      task :config_gen do
        # not yet implemented
      end
      
      desc "deploy config file for php" 
      task :config, :roles => :web do
        # not yet implemented
      end
      
      task :start, :roles => :web do
        # not applicable
      end
      
      task :stop, :roles => :web do
        # not applicable
      end
      
      task :restart, :roles => :web do
        # not applicable
      end
      
      desc "enable php in webserver"
      task :activate, :roles => :web do
        # not yet implemented
      end  
      
      desc "disable php in webserver"
      task :deactivate, :roles => :web do
        # not yet implemented
      end
      
      task :backup, :roles => :web do
        # not applicable
      end
      
      task :restore, :roles => :web do
        # not applicable
      end
      
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
deprec-3.1.0.rc16 lib/deprec/recipes/php.rb
deprec-3.1.0.rc15 lib/deprec/recipes/php.rb
deprec-3.1.0.rc13 lib/deprec/recipes/php.rb
deprec-3.1.0.rc12 lib/deprec/recipes/php.rb
deprec-3.1.0.rc11 lib/deprec/recipes/php.rb