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.3 templates/script/edit-credentials
hephaestus-0.8.2 templates/script/edit-credentials
hephaestus-0.8.1 templates/script/edit-credentials
hephaestus-0.8.0 templates/script/edit-credentials
hephaestus-0.7.7.2 templates/script/edit-credentials
hephaestus-0.7.7 templates/script/edit-credentials
hephaestus-0.7.6.2 templates/script/edit-credentials
hephaestus-0.7.6.1 templates/script/edit-credentials
hephaestus-0.7.6 templates/script/edit-credentials
hephaestus-0.7.5.3 templates/script/edit-credentials
hephaestus-0.7.5.2 templates/script/edit-credentials
hephaestus-0.7.5.1 templates/script/edit-credentials
hephaestus-0.7.5 templates/script/edit-credentials
hephaestus-0.7.4.2 templates/script/edit-credentials
hephaestus-0.7.4.1 templates/script/edit-credentials
hephaestus-0.7.4 templates/script/edit-credentials
hephaestus-0.7.3.1 templates/script/edit-credentials
hephaestus-0.7.3 templates/script/edit-credentials
hephaestus-0.7.2.5 templates/script/edit-credentials
hephaestus-0.7.2.4 templates/script/edit-credentials