Sha256: e8c566f94e9e0a87710a806c72f821987047b573af6b923ad4343e914ab56831
Contents?: true
Size: 337 Bytes
Versions: 14
Compression:
Stored size: 337 Bytes
Contents
def watch_process(name, options = {}) processes = fetch(:eye_watched_processes, {}) options[:name] ||= name options[:template] ||= name.to_sym if options[:template].kind_of?(Symbol) options[:template] = "tasks/eye/_#{options[:template]}.erb" end processes[name] = options set :eye_watched_processes, processes end
Version data entries
14 entries across 14 versions & 1 rubygems