From 697b0e7679e7238fad2eaf0f3b72b8964b0d365b Mon Sep 17 00:00:00 2001 From: booboy Date: Tue, 5 Feb 2019 00:46:13 -0600 Subject: [PATCH] moved around files for better organization --- bin/console | 5 ++++- {lib => helpers}/elastic_search_helper.rb | 0 {lib => mappings}/mappings.json | 0 {lib => workers}/paste_to_es.rb | 0 4 files changed, 4 insertions(+), 1 deletion(-) rename {lib => helpers}/elastic_search_helper.rb (100%) rename {lib => mappings}/mappings.json (100%) rename {lib => workers}/paste_to_es.rb (100%) diff --git a/bin/console b/bin/console index 15a5cf9..fabdf2b 100755 --- a/bin/console +++ b/bin/console @@ -6,13 +6,16 @@ require 'pry' require '../lib/pastebinner' -require '../lib/elastic_search_helper' +require '../helpers/elastic_search_helper' require '../lib/paste_to_es' +require '../config/initializers/sidekiq' require 'pry' # set restclient logging and setup a pb object RestClient.log ='stdout' + +# setup a pastebinner object and elastic search objects so we have them to work with right when we launch console pb = Pastebinner.new(ENV['pastebin_api_key'], ENV['pastebin_username'], ENV['pastebin_password']) es = ElasticSearchHelper.new(ENV['elastic_search_url'], 'pastes') diff --git a/lib/elastic_search_helper.rb b/helpers/elastic_search_helper.rb similarity index 100% rename from lib/elastic_search_helper.rb rename to helpers/elastic_search_helper.rb diff --git a/lib/mappings.json b/mappings/mappings.json similarity index 100% rename from lib/mappings.json rename to mappings/mappings.json diff --git a/lib/paste_to_es.rb b/workers/paste_to_es.rb similarity index 100% rename from lib/paste_to_es.rb rename to workers/paste_to_es.rb