Sha256: ee2a31d21a5291e644fef282b3f9e4896fc1b318411597cf1cedecf3ea2e6263
Contents?: true
Size: 632 Bytes
Versions: 58
Compression:
Stored size: 632 Bytes
Contents
#!/usr/bin/env bash set -e # Initialize flags staging=false production=false # Check for and parse flags for arg in "$@" do case $arg in --staging) staging=true ;; --production) production=true ;; *) # Unknown arguments can be ignored or handled here ;; esac done if [[ $staging == true ]]; then RAILS_MASTER_KEY=$(op read op://Plug-App/staging-rails-master-key/...) bin/rails credentials:edit -e staging else RAILS_MASTER_KEY=$(op read op://Plug-App/production-rails-master-key/...) bin/rails credentials:edit -e production fi
Version data entries
58 entries across 58 versions & 1 rubygems