Class: Dependencies::Apk
Constant Summary
Constants inherited
from Dependency
Dependency::DESCRIPTION_TYPE_WIDTH
Instance Attribute Summary
Attributes inherited from Dependency
#exit_code, #name, #output
Instance Method Summary
collapse
Methods inherited from Dependency
#always_act?, #initialize, #success?, #type
Constructor Details
This class inherits a constructor from Dependency
Instance Method Details
#meet ⇒ Object
13
14
15
|
# File 'lib/dependencies/apk.rb', line 13
def meet
execute("apk add #{name}")
end
|
#met? ⇒ Boolean
9
10
11
|
# File 'lib/dependencies/apk.rb', line 9
def met?
execute("apk info | grep -q #{name}")
end
|
#should_meet? ⇒ Boolean
22
23
24
|
# File 'lib/dependencies/apk.rb', line 22
def should_meet?
system("which apk")
end
|
#unmeet ⇒ Object
17
18
19
20
|
# File 'lib/dependencies/apk.rb', line 17
def unmeet
true
end
|