super_top_secret 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 043d59a8f3ba001ed49473cddd8afc5c8aadfae8
4
- data.tar.gz: 357453fc7d285a99075ba64b2e1ee47fa77bae6f
3
+ metadata.gz: 041b0d5e47a99d57d995723bb394b67c227551f7
4
+ data.tar.gz: 9f38fa1add91cda85c4017419b74c1d48eb58b92
5
5
  SHA512:
6
- metadata.gz: 4d25dbf0b7d358a0b6b65bd30d222e7e106ff9542b754e85707191d4edb6b9e9fb298493cdd6b6de1723f974bccb050b32f4c2061fe89f0624a93893c84bcd0d
7
- data.tar.gz: f70ab3ecc0e7836de881c393a27fcd8fcca1e6959fbfe53d6eef5d7b20136e9f133ce1dedb0d384a322ef7d4adceff8b6a0396e62c6488527836463bf27278b0
6
+ metadata.gz: 8c351d680d2179b86d78f5ffe6b73c863ce5ce02bcf36079d7f9bd622d9da24bf016e1782c2cfc1e3b1c50282d163d607e5bf55c459dde6e44a947a0115147c8
7
+ data.tar.gz: e0ec8a0f1c0e4758a0136cc865e121be8ec1212da475809658d761b6169cc7030209ff45dfbc126bdd2c1fcdc642b4040e48b16e33b17f706d94fbfc6e731f1b
@@ -1,3 +1,3 @@
1
1
  module SuperTopSecret
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
@@ -2,12 +2,16 @@ namespace :secrets do
2
2
  desc "Decrypt your secrets rake secrets:decrypt"
3
3
  task :decrypt do
4
4
  puts "Decrypting your files, sir"
5
- # sh("aws kms decrypt --ciphertext-blob fileb://#{p}.enc --output text --query Plaintext | base64 --decode > #{p}")
5
+ %w(config/application.yml config/database.yml).each do |p|
6
+ sh("aws kms decrypt --ciphertext-blob fileb://#{p}.enc --output text --query Plaintext | base64 --decode > #{p}")
7
+ end
6
8
  end
7
9
 
8
10
  desc "Encrypt your secrets rake secrets:encrypt"
9
11
  task :encrypt do
10
12
  puts "Encrypting your files, sir"
11
- # sh("aws kms encrypt --key-id arn:aws:kms:us-west-2:155751353262:alias/properties --plaintext fileb://#{p} --output text --query CiphertextBlob | base64 --decode > #{p}.enc")
13
+ %w(config/application.yml config/database.yml).each do |p|
14
+ sh("aws kms encrypt --key-id arn:aws:kms:us-west-2:155751353262:alias/properties --plaintext fileb://#{p} --output text --query CiphertextBlob | base64 --decode > #{p}.enc")
15
+ end
12
16
  end
13
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_top_secret
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Stringham