Sha256: e1350cf3fffa1a6199b085459cfd4e3270efe0e831411b3f1c0035b4a13147a3

Contents?: true

Size: 1.29 KB

Versions: 5

Compression:

Stored size: 1.29 KB

Contents

require 'deprec-core'
Capistrano::Configuration.instance(:must_exist).load do 
  namespace :deprec do 
    namespace :sqlite do

      SRC_PACKAGES[:sqlite] = {
        :url => "http://www.sqlite.org/sqlite-amalgamation-3.7.2.tar.gz",
        :md5sum => "bd9586208f48ba840467bcfd066a6fa9  sqlite-amalgamation-3.7.2.tar.gz",
        :dir => 'sqlite-3.7.2'
      }


      desc "Install sqlite"
      task :install, :roles => :db do
        install_deps
        deprec2.download_src(SRC_PACKAGES[:sqlite], src_dir)
        deprec2.install_from_src(SRC_PACKAGES[:sqlite], src_dir)
        gem2.install "sqlite3-ruby"
      end

      # install dependencies for nginx
      task :install_deps, :roles => :db do
        # apt.install( {:base => %w(blah)}, :stable )
      end
    end
    
    desc "Create a PostgreSQL user"
    task :create_user do
      # Not needed for sqlite
      # We need these stubs for deprec:rails:setup_database
    end
    
    desc "Create a PostgreSQL Database" 
    task :create_database do
      # Not needed for sqlite
      # We need these stubs for deprec:rails:setup_database
    end
    
    # "Grant user access to Database" 
    task :grant_user_access_to_database do
      # Not needed for sqlite
      # We need these stubs for deprec:rails:setup_database
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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