Class: Dependencies::Brew
Direct Known Subclasses
Cask
Constant Summary
Constants inherited
from Dependency
Dependency::DESCRIPTION_TYPE_WIDTH
Instance Attribute Summary
Attributes inherited from Dependency
#name
Instance Method Summary
collapse
Methods inherited from Dependency
#always_act?, #exit_code, #failure?, #initialize, #output, #success?, #type
Constructor Details
This class inherits a constructor from Dependency
Instance Method Details
#meet ⇒ Object
9
10
11
|
# File 'lib/dependencies/brew.rb', line 9
def meet
execute("brew install #{name}")
end
|
#met? ⇒ Boolean
5
6
7
|
# File 'lib/dependencies/brew.rb', line 5
def met?
execute("brew list #{name}")
end
|
#should_meet? ⇒ Boolean
18
19
20
|
# File 'lib/dependencies/brew.rb', line 18
def should_meet?
`uname`.chomp == "Darwin"
end
|
#unmeet ⇒ Object
13
14
15
16
|
# File 'lib/dependencies/brew.rb', line 13
def unmeet
true
end
|