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.7.2.3 templates/script/edit-credentials
hephaestus-0.7.2.2 templates/script/edit-credentials
hephaestus-0.7.2.1 templates/script/edit-credentials
hephaestus-0.7.2 templates/script/edit-credentials
hephaestus-0.7.1 templates/script/edit-credentials
hephaestus-0.7.0 templates/script/edit-credentials
hephaestus-0.6.4 templates/script/edit-credentials
hephaestus-0.6.3 templates/script/edit-credentials
hephaestus-0.6.2 templates/script/edit-credentials
hephaestus-0.6.1 templates/script/edit-credentials
hephaestus-0.6.0 templates/script/edit-credentials
hephaestus-0.5.2 templates/script/edit-credentials
hephaestus-0.5.1 templates/script/edit-credentials
hephaestus-0.5.0 templates/script/edit-credentials
hephaestus-0.4.0 templates/script/edit-credentials
hephaestus-0.3.1 templates/script/edit-credentials
hephaestus-0.2.3 templates/script/edit-credentials
hephaestus-0.2.2 templates/script/edit-credentials