Class: Dependencies::Cask

Inherits:
Brew show all
Defined in:
lib/dependencies/cask.rb

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 Brew

#should_meet?, #unmeet

Methods inherited from Dependency

#always_act?, #exit_code, #initialize, #output, #should_meet?, #success?, #type, #unmeet

Constructor Details

This class inherits a constructor from Dependency

Instance Method Details

#meetObject



11
12
13
# File 'lib/dependencies/cask.rb', line 11

def meet
	execute("brew install --cask #{name}")
end

#met?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/dependencies/cask.rb', line 7

def met?
	execute("brew list --cask #{name}")
end