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

Version Path
hephaestus-0.8.11 templates/script/edit-credentials
hephaestus-0.8.10 templates/script/edit-credentials
hephaestus-0.8.9.2 templates/script/edit-credentials
hephaestus-0.8.9.1 templates/script/edit-credentials
hephaestus-0.8.9 templates/script/edit-credentials
hephaestus-0.8.8 templates/script/edit-credentials
hephaestus-0.8.7.5 templates/script/edit-credentials
hephaestus-0.8.7.4 templates/script/edit-credentials
hephaestus-0.8.7.3 templates/script/edit-credentials
hephaestus-0.8.7.2 templates/script/edit-credentials
hephaestus-0.8.7.1 templates/script/edit-credentials
hephaestus-0.8.7 templates/script/edit-credentials
hephaestus-0.8.6 templates/script/edit-credentials
hephaestus-0.8.5 templates/script/edit-credentials
hephaestus-0.8.4.1 templates/script/edit-credentials
hephaestus-0.8.4 templates/script/edit-credentials
hephaestus-0.8.3.4 templates/script/edit-credentials
hephaestus-0.8.3.3 templates/script/edit-credentials
hephaestus-0.8.3.2 templates/script/edit-credentials
hephaestus-0.8.3.1 templates/script/edit-credentials