Sha256: 808654390968c3826f5f856df68a6332efae176356cab241ae386afbbf6b59b8
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
#!/usr/bin/env ruby require 'reap/task' # ___ _ _ _ _____ _ # |_ _|_ __ ___| |_ __ _| | | |_ _|_ _ ___| | __ # | || '_ \/ __| __/ _` | | | | |/ _` / __| |/ / # | || | | \__ \ || (_| | | | | | (_| \__ \ < # |___|_| |_|___/\__\__,_|_|_| |_|\__,_|___/_|\_\ # class Reap::Install < Reap::Task task_desc "Locally install package using built-in setup.rb." task_help %{ reap install This task manually installs a project using setup.rb. If setup.rb doesn't exist it will be created. } def run task.options ||= [] #exe = %w{ setup.rb install.rb }.find{ |f| File.exists?(f) } #raise "setup.rb or install.rb not found" if exe == nil unless provide_setup_rb puts "Setup.rb is missing. Forced to skip debian package creation." return nil end puts "Reap is shelling out work to setup.rb..." # # prepare for using internalized setup.rb # # ARGV.delete('install') # ARGV << '-q' unless $VERBOSE # ARGV.concat(task.options) # # $setup_pwd = $PROJECT_INFO.info_dir #Dir.pwd # # # invoke setup.rb # # begin # ToplevelInstaller.invoke # rescue SetupError # raise if $DEBUG # $stderr.puts $!.message # $stderr.puts "Try 'reap --help' for detailed usage." # exit 1 # end #-- # SHELL OUT! This will be fixed with swtich to package.rb instead of setup.rb. #++ exe = %{ruby setup.rb} exe << ' -q ' unless $VERBOSE exe << task.options.join(' ') exe << ' all' sh exe puts "Setup complete!" end end # Rake interface. if defined?(Rake) #require 'reap/rake/adapter' module Rake ReapInstall = ::Reap::RakeAdapter( ::Reap::Install ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reap-4.5.1 | lib/reap/task/install.rb |