Method: RuAUR#initialize
- Defined in:
- lib/ruaur.rb
#initialize(hilight = false) ⇒ RuAUR
Returns a new instance of RuAUR.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/ruaur.rb', line 41 def initialize(hilight = false) [ "makepkg", "pacman", "su", "sudo" ].each do |dep| if (ScoobyDoo.where_are_you(dep).nil?) raise RuAUR::Error::MissingDependency.new(dep) end end @@hilight = hilight @pacman = RuAUR::Pacman.new @aur = RuAUR::AUR.new(@pacman, nil) @lock = Pathname.new("/tmp/ruaur.lock"). end |