Class: Dependencies::Custom

Inherits:
Dependency show all
Defined in:
lib/dependencies/custom.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 Dependency

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

Constructor Details

This class inherits a constructor from Dependency

Instance Method Details

#meetObject



12
13
14
15
# File 'lib/dependencies/custom.rb', line 12

def meet
	# this dependency is just a custom, idempotent command
	execute(name)
end

#met?Boolean

Returns:

  • (Boolean)


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

def met?
	# we always want to try to meet this dependency
	false
end

#unmeetObject



17
18
19
# File 'lib/dependencies/custom.rb', line 17

def unmeet
	true
end