Sha256: b38270c256450030219a448544fcdbcc6a38a9232be197870d404c8a5a9bc32e

Contents?: true

Size: 352 Bytes

Versions: 16

Compression:

Stored size: 352 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] = "capistrano/templates/eye/_#{options[:template]}.erb"
  end

  processes[name] = options

  set :eye_watched_processes, processes
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
negroku-2.8.6 lib/negroku/helpers/watch.rb
negroku-2.8.5 lib/negroku/helpers/watch.rb
negroku-2.8.4 lib/negroku/helpers/watch.rb
negroku-2.8.3 lib/negroku/helpers/watch.rb
negroku-2.8.2 lib/negroku/helpers/watch.rb
negroku-2.8.1 lib/negroku/helpers/watch.rb
negroku-2.8.0 lib/negroku/helpers/watch.rb
negroku-2.7.1 lib/negroku/helpers/watch.rb
negroku-2.7.0 lib/negroku/helpers/watch.rb
negroku-2.6.0 lib/negroku/helpers/watch.rb
negroku-2.5.5 lib/negroku/helpers/watch.rb
negroku-2.5.4 lib/negroku/helpers/watch.rb
negroku-2.5.3 lib/negroku/helpers/watch.rb
negroku-2.5.2 lib/negroku/helpers/watch.rb
negroku-2.5.1 lib/negroku/helpers/watch.rb
negroku-2.5.0 lib/negroku/helpers/watch.rb