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

Version Path
negroku-2.4.2 lib/negroku/helpers/watch.rb
negroku-2.4.1 lib/negroku/helpers/watch.rb
negroku-2.4.0 lib/negroku/helpers/watch.rb
negroku-2.3.5 lib/negroku/helpers/watch.rb
negroku-2.3.4 lib/negroku/helpers/watch.rb
negroku-2.3.3 lib/negroku/helpers/watch.rb
negroku-2.3.2 lib/negroku/helpers/watch.rb
negroku-2.3.1 lib/negroku/helpers/watch.rb
negroku-2.3.0 lib/negroku/helpers/watch.rb
negroku-2.2.0 lib/negroku/helpers/watch.rb
negroku-2.1.0 lib/negroku/helpers/watch.rb
negroku-2.0.3 lib/negroku/helpers/watch.rb
negroku-2.0.2 lib/negroku/helpers/watch.rb
negroku-2.0.1 lib/negroku/helpers/watch.rb