Sha256: 413a7b1d30a9e62163981fd7d54b4bdae523229c2ca359b1c7aa2e480572c737

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 & 2 rubygems

Version Path
eye-0.8.pre2 lib/eye/dsl/helpers.rb
eye-0.8.pre lib/eye/dsl/helpers.rb
eye-0.7 lib/eye/dsl/helpers.rb
eye-0.7.pre lib/eye/dsl/helpers.rb
eye-0.6.4 lib/eye/dsl/helpers.rb
eye-0.6.3 lib/eye/dsl/helpers.rb
eye-0.6.2 lib/eye/dsl/helpers.rb
eye-0.6.2.pre lib/eye/dsl/helpers.rb
ace-eye-0.6.5 lib/eye/dsl/helpers.rb
ace-eye-0.6.4 lib/eye/dsl/helpers.rb
eye-0.6.1 lib/eye/dsl/helpers.rb
ace-eye-0.6.3 lib/eye/dsl/helpers.rb
ace-eye-0.6.2 lib/eye/dsl/helpers.rb
ace-eye-0.6.1 lib/eye/dsl/helpers.rb
eye-0.6 lib/eye/dsl/helpers.rb