Sha256: 47139635ca5fc3760f691c812dedad9958a0ff621594c0f1c09ec180e4e74083

Contents?: true

Size: 394 Bytes

Versions: 15

Compression:

Stored size: 394 Bytes

Contents

# Dsl Helpers

# current eye parsed config path
def current_config_path
  Eye.parsed_filename && File.symlink?(Eye.parsed_filename) ? File.readlink(Eye.parsed_filename) : Eye.parsed_filename
end

# host name
def hostname
  Eye::Local.host
end

def example_process(proxy, name)
  proxy.process(name) do
    pid_file "/tmp/#{name}.pid"
    start_command 'sleep 100'
    daemonize true
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
eye-0.10.1.pre lib/eye/dsl/helpers.rb
eye-0.10.0 lib/eye/dsl/helpers.rb
eye-0.10.0.alpha2 lib/eye/dsl/helpers.rb
eye-0.10.0.alpha lib/eye/dsl/helpers.rb
eye-0.9.4.nosigar lib/eye/dsl/helpers.rb
eye-0.9.4 lib/eye/dsl/helpers.rb
eye-0.9.3 lib/eye/dsl/helpers.rb
eye-0.9.2.nosigar lib/eye/dsl/helpers.rb
eye-0.9.2 lib/eye/dsl/helpers.rb
eye-0.9.1 lib/eye/dsl/helpers.rb
eye-0.9.pre lib/eye/dsl/helpers.rb
eye-0.8.1 lib/eye/dsl/helpers.rb
eye-0.8.celluloid15 lib/eye/dsl/helpers.rb
eye-0.8 lib/eye/dsl/helpers.rb
eye-0.8.rc lib/eye/dsl/helpers.rb