class ConfigProcessor

Public Class Methods

new(options = {}) click to toggle source
# File lib/guard/nginx/config_processor.rb, line 2
def initialize(options = {})
  @config = options
end

Public Instance Methods

config_fetch(key) click to toggle source
# File lib/guard/nginx/config_processor.rb, line 6
def config_fetch(key)
  @config.fetch(key.to_sym) { false }
end
config_path() click to toggle source
# File lib/guard/nginx/config_processor.rb, line 14
def config_path
  "#{root_path}/config"
end
get_binding() click to toggle source
# File lib/guard/nginx/config_processor.rb, line 26
def get_binding
  binding
end
pid_path() click to toggle source
# File lib/guard/nginx/config_processor.rb, line 22
def pid_path
  "#{Dir.pwd}/tmp/pids/nginx.pid"
end
root_path() click to toggle source
# File lib/guard/nginx/config_processor.rb, line 10
def root_path
  Dir.pwd
end
tmp_path() click to toggle source
# File lib/guard/nginx/config_processor.rb, line 18
def tmp_path
  "#{root_path}/tmp"
end