Sha256: dad9f9823d917f1fa7cf1ea0c4ed5123ab064ffc5bc3931a4c37f6d4d55b2769

Contents?: true

Size: 1000 Bytes

Versions: 4

Compression:

Stored size: 1000 Bytes

Contents

require 'setup/install'
require 'rake/clean'

def session
  @session ||= Setup::Session.new(:io=>$stdout)
end

namespace :setup do

  desc 'Config, setup and then install'
  task :all => [:config, :setup, :install]

  desc 'Saves your configurations'
  task :config do
    session.config
  end

  desc 'Compiles ruby extentions'
  task :make do
    session.make
  end

  desc 'Runs unit tests'
  task :test do
    session.test
  end

  desc 'Generate ri documentation'
  task :rdoc do
    session.document
  end

  desc 'Installs files'
  task :install do
    session.install
  end

  desc 'Uninstalls files'
  task :uninstall do
    session.uninstall
  end

  desc "Does `make clean' for each extention"
  task :clean do
    session.clean
  end

  desc  "Does `make distclean' for each extention"
  task :distclean do
    session.distclean
  end

  desc 'Shows current configuration'
  task :show do
    session.show
  end
end

task :clean   => ['setup:clean']
task :clobber => ['setup:distclean']

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
setup-5.2.0 lib/setup/rake.rb
setup-5.1.0 lib/setup/rake.rb
setup-5.0.1 lib/setup/rake.rb
setup-5.0.0 lib/setup/rake.rb