First, install the Sass, Font Awesome, bootstrap(and deps) package:
cd assets
- npm install --save-dev sass-brunch
- npm install --save font-awesome
| FROM crystallang/crystal:0.27.2 | |
| WORKDIR /opt/src | |
| # Install nodejs | |
| COPY bin ./bin | |
| RUN bin/nodesource_11.x | |
| RUN apt-get update && apt-get install -y nodejs | |
| # npm install |
| defmodule Ael.Secrets.API do | |
| def get_secret_url(secret) do | |
| %Secret{ | |
| action: action, | |
| expires_at: expires_at, | |
| bucket: bucket, | |
| resource_id: resource_id, | |
| resource_name: resource_name | |
| } = secret |
| # This is a skeleton for testing models including examples of validations, callbacks, | |
| # scopes, instance & class methods, associations, and more. | |
| # Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
| # | |
| # I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
| # so if you have any, please share! | |
| # | |
| # This skeleton also assumes you're using the following gems: | |
| # | |
| # rspec-rails: https://github.com/rspec/rspec-rails |