From 879a89777056b1ef0a4631662a63f7e9ab3984fb Mon Sep 17 00:00:00 2001 From: booboy Date: Sat, 10 Nov 2018 04:14:32 -0600 Subject: [PATCH] just added some psuedocode for an exception and a config file method --- lib/configuration.rb | 9 +++++++++ lib/exceptions.rb | 3 +++ 2 files changed, 12 insertions(+) diff --git a/lib/configuration.rb b/lib/configuration.rb index c37593d..95be837 100644 --- a/lib/configuration.rb +++ b/lib/configuration.rb @@ -2,4 +2,13 @@ class Configuration # this is going to be where i store config options like # - database or directory. directory is built in, we just need to fine tune it a bit more # - we will start doing just a standard sqlite file for raw pastes as a test + + # we can use systemd service/timer files to generate a way to automate downloading raw pastes. + def generate_service_file(user=, working_directory=, exec_start=) + # this should maybe be a HERE document that will create the file with the + # or just open the base template file that we have and replace these specific lines. + end + + def build_cron + end end diff --git a/lib/exceptions.rb b/lib/exceptions.rb index 2ff5db8..dc79603 100644 --- a/lib/exceptions.rb +++ b/lib/exceptions.rb @@ -1,4 +1,7 @@ class PastebinnerError < StandardError + def ConfigError + + end end