Class: GitHubEventWatcher::Command::GitHubPullPushEvents
- Inherits:
-
Object
- Object
- GitHubEventWatcher::Command::GitHubPullPushEvents
- Defined in:
- lib/github-event-watcher/command/github-pull-push-events.rb
Instance Method Summary collapse
-
#initialize ⇒ GitHubPullPushEvents
constructor
A new instance of GitHubPullPushEvents.
- #run(argv = ARGV) ⇒ Object
Constructor Details
#initialize ⇒ GitHubPullPushEvents
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) start_watcher true end |