Class: Reap::Install

Inherits:
Task
  • Object
show all
Defined in:
lib/reap/task/install.rb

Overview

_ _ _ _ _ _ |_ _|_ __ _| |_ __ _| | | |_ _|_ _ _| | __

| || '_ \/ __| __/ _` | | |   | |/ _` / __| |/ /
| || | | \__ \ || (_| | | |   | | (_| \__ \   <

|__|| |_|__/_,_|_|_| |_|__,_|__/|_\

Constant Summary

Constants inherited from Task

Task::RUBY

Instance Method Summary collapse

Methods inherited from Task

#ask, available?, #execute, has_section?, inherited, #initialize, #initiate, master, #master, #provide_setup_rb, #section, #sh, #task, task_attr, task_available, #task_desc, task_desc, #task_help, task_help, task_list, #task_name, task_name, #tell, #use_subsection

Constructor Details

This class inherits a constructor from Reap::Task

Instance Method Details

#runObject



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
# File 'lib/reap/task/install.rb', line 28

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..."

  #--
  # 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