class Object

Public Instance Methods

blank?() click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 11
def blank?
  respond_to?(:empty?) ? empty? : !self
end
current_config_path() click to toggle source

current eye parsed config path

# File lib/eye/dsl/helpers.rb, line 5
def current_config_path
  Eye.parsed_filename && File.symlink?(Eye.parsed_filename) ? File.readlink(Eye.parsed_filename) : Eye.parsed_filename
end
example_process(proxy, name) click to toggle source
# File lib/eye/dsl/helpers.rb, line 14
def example_process(proxy, name)
  proxy.process(name) do
    pid_file "/tmp/#{name}.pid"
    start_command "sleep 100"
    daemonize true
  end
end
hostname() click to toggle source

host name

# File lib/eye/dsl/helpers.rb, line 10
def hostname
  Eye::Local.host
end
present?() click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 15
def present?
  !blank?
end
silence_warnings() { || ... } click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 3
def silence_warnings
  old_verbose, $VERBOSE = $VERBOSE, nil
  yield
ensure
  $VERBOSE = old_verbose
end
try(m, *args) click to toggle source
# File lib/eye/utils/mini_active_support.rb, line 19
def try(m, *args)
  send(m, *args) if respond_to?(m)
end