Class: GitHubEventWatcher::Command::GitHubPullPushEvents

Inherits:
Object
  • Object
show all
Defined in:
lib/github-event-watcher/command/github-pull-push-events.rb

Instance Method Summary collapse

Constructor Details

#initializeGitHubPullPushEvents

Returns a new instance of GitHubPullPushEvents.



28
29
30
31
32
33
34
# File 'lib/github-event-watcher/command/github-pull-push-events.rb', line 28

def initialize
  @state_dir = Pathname.new("var/lib")
  @log_dir = Pathname.new("var/log")
  @config_file = Pathname.new("config.yaml")
  @pid_file = Pathname.new("var/run/github-pull-push-events.pid")
  @daemonize = false
end

Instance Method Details

#run(argv = ARGV) ⇒ Object



36
37
38
39
40
41
# File 'lib/github-event-watcher/command/github-pull-push-events.rb', line 36

def run(argv=ARGV)
  parse_command_line!(argv)
  expand_paths
  start_watcher
  true
end