Sha256: d75f11499e5debc48f56715008fb73b7bf968098d8bcc684c8fb47f3be18e38e
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
#!/usr/bin/env ruby require 'reap/task' require 'reap/setup' # ___ _ _ _ _____ _ # |_ _|_ __ ___| |_ __ _| | | |_ _|_ _ ___| | __ # | || '_ \/ __| __/ _` | | | | |/ _` / __| |/ / # | || | | \__ \ || (_| | | | | | (_| \__ \ < # |___|_| |_|___/\__\__,_|_|_| |_|\__,_|___/_|\_\ # 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 exe = %{ruby setup.rb} exe << ' -q ' unless $VERBOSE exe << task.options.join(' ') exe << ' all' sh exe puts "Setup complete!" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reap-4.4.1 | lib/reap/task/install.rb |
reap-4.4.0 | lib/reap/task/install.rb |