Skip to content

Commit

Permalink
use centralized tasks from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mnyrop committed Oct 14, 2024
1 parent 1af9bab commit 2835a5a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 188 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
source 'https://rubygems.org'

gem 'aperitiiif', github: 'migrants-and-the-state/aperitiiif-cli', branch: 'main'
# gem 'aperitiiif', path: 'aperitiiif-cli'
gem 'og_tasks', github: 'migrants-and-the-state/og_tasks', branch: 'main'

group :development do
gem 'aws-sdk-s3', '~> 1'
gem 'dotenv'
gem 'pdf-reader'
gem 'rake'
end
9 changes: 8 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ GIT
safe_yaml
thor

GIT
remote: https://github.com/migrants-and-the-state/og_tasks.git
revision: 6c404a92eb070ff5cae56be9cbac387e1de077fa
branch: main
specs:
og_tasks (0.1.0)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -145,8 +152,8 @@ DEPENDENCIES
aperitiiif!
aws-sdk-s3 (~> 1)
dotenv
og_tasks!
pdf-reader
rake

BUNDLED WITH
2.5.16
17 changes: 3 additions & 14 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
require 'fileutils'
require 'yaml'


CONFIG = YAML.load_file 'config.yml'
RW_DIR = File.dirname CONFIG['source_dir']
PDF_DIR = File.join RW_DIR, 'pdfs'
JPG_DIR = File.join RW_DIR, 'jpgs'
ANUM_TXT_FILE = File.join RW_DIR, 'anumbers.txt'
AFILES_CSV_FILE = CONFIG.dig 'records', 'file'

Dir.glob("lib/tasks/*.rake").each { |r| load r }


require 'og_tasks'

spec = Gem::Specification.find_by_name 'og_tasks'
Dir.glob("#{spec.gem_dir}/lib/**/*.rake").each { |r| load r }
109 changes: 0 additions & 109 deletions lib/tasks/pdfs.rake

This file was deleted.

62 changes: 0 additions & 62 deletions lib/tasks/s3.rake

This file was deleted.

0 comments on commit 2835a5a

Please sign in to comment.