Class: Reap::Install
Overview
_ _ _ _ _ _ |_ _|_ __ _| |_ __ _| | | |_ _|_ _ _| | __
| || '_ \/ __| __/ _` | | | | |/ _` / __| |/ /
| || | | \__ \ || (_| | | | | | (_| \__ \ <
|__|| |_|__/_,_|_|_| |_|__,_|__/|_\
Constant Summary
Constants inherited from Task
Instance Method Summary collapse
Methods inherited from Task
#ask, #execute, inherited, #initialize, #initiate, master, #master, #provide_setup_rb, #section, section_required, section_required?, #section_required?, #sh, #task, task_attr, #task_desc, task_desc, #task_help, task_help, task_list, #task_name, task_name, #tell, #use_subsection, verify?
Constructor Details
This class inherits a constructor from Reap::Task
Instance Method Details
#run ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/reap/task/install.rb', line 26 def run task. ||= [] #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..join(' ') exe << ' all' sh exe puts "Setup complete!" end |