pastebinner/lib/configuration.rb

16 lines
736 B
Ruby
Raw Normal View History

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
# need to lookup what we have to put in PATH in the cron to inherit the environment variables for the api key,username,password
end
end