Skip to content

gem-packaged commands for processing aperitiiif batches 🥂

License

Notifications You must be signed in to change notification settings

middlicomp/aperitiiif-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aperitiiif-cli

gem-packaged commands for processing aperitiiif batches 🥂

rspec reek rubocop

Maintainability Test Coverage

Related repos:

Prerequisites

Installation

Recommended

It is highly recommended that you use the aperitiiif-batch-template repo to create your new batch project. This method will include all the necessary Ruby dependencies and project structure.

Manual

Alternatively, you can add the gem to your project's Gemfile:

gem 'aperitiiif', github: 'nyu-dss/aperitiiif-cli'

Then install by running the command:

bundle install

Usage

After your batch project is set up and you have installed the dependencies using Bundler, you will have access to the aperitiiif commands.

  1. Check available commands
bundle exec aperitiiif --help
  1. Check available batch commands
bundle exec aperitiiif batch --help

You will see something like:

➜ bundle exec aperitiiif batch --help
  Commands:
  aperitiiif batch build           # build batch resources
  aperitiiif batch help [COMMAND]  # Describe subcommands or one specific subc...
  aperitiiif batch lint            # lint the batch
  aperitiiif batch reset           # reset the batch

Development

Contributions should:

  • Avoid code smells
  • Follow style guide
  • Update tests as needed
  • Update documentation as needed

To ensure the above, this repo includes configuration for reek and rubocop as well as rspec tests. You can run them respectively with the following commands:

bundle exec reek
bundle exec rubocop -A
bundle exec rspec