Sha256: b8597cae78e9df9c4c0360a273b97cf4c34bdae18034d983d68b022a593ba627
Contents?: true
Size: 853 Bytes
Versions: 3
Compression:
Stored size: 853 Bytes
Contents
# frozen_string_literal: true module Neptuno module Environment # Build docker container for Neptuno project class Update < Neptuno::CLI::Base desc "Environment: Update all environment files" def call env_path = "#{neptuno_path}/environments/" services.each do |service| service_env_path = env_path + service if File.exist?("#{service_env_path}/key") && File.exist?("#{service_env_path}/secrets.gpg") system("cd #{service_env_path} && gpg --pinentry-mode loopback --passphrase-file key secrets.gpg") system("cd #{service_env_path} && cat default secrets > local_env") system("cd #{service_env_path} && rm secrets") else system("cd #{service_env_path} && ln -sf default local_env") end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
neptuno-1.5.0 | lib/neptuno/environment/update.rb |
neptuno-1.2.1 | lib/neptuno/environment/update.rb |
neptuno-1.2.0 | lib/neptuno/environment/update.rb |