module Travis::Lock
Constants
- VERSION
Attributes
default_strategy[R]
Public Instance Methods
exclusive(name, options = {}, &block)
click to toggle source
# File lib/travis/lock.rb, line 17 def exclusive(name, options = {}, &block) options[:strategy] ||= Lock.default_strategy || :none Lock.const_get(camelize(options[:strategy])).new(name, options).exclusive(&block) end
Private Instance Methods
camelize(object)
click to toggle source
# File lib/travis/lock.rb, line 24 def camelize(object) object.to_s.split('_').collect(&:capitalize).join end