class Bindep::Item
Attributes
apt[RW]
brew[RW]
command[RW]
depends[RW]
id[R]
install_command[RW]
npm[RW]
rubygem[RW]
yum[RW]
Public Class Methods
new(id)
click to toggle source
# File lib/bindep/item.rb, line 6 def initialize(id) @id = id.to_sym end
Public Instance Methods
local_command(reset = false)
click to toggle source
Get the command for the current system. Return nil if command is not available.
# File lib/bindep/item.rb, line 11 def local_command(reset = false) @local_command = nil if reset @local_command ||= [ command ].flatten.compact.find do |cmd| Helpers.command_exists? cmd end end