capistrano-secrets 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ccb57d3b277ce18152e3a77cccb550a9848d8c68
4
+ data.tar.gz: c5f27b70466bf84ebe109c0ab27183f540a70cc6
5
+ SHA512:
6
+ metadata.gz: e92840845ae67fa5f9130ca90a277c472a1df1b83822e68a28439eb4e18ab64629a4669c76626600ffe45ddb596085f93deec46017e4e5cb034ad6af1ec8551c
7
+ data.tar.gz: e479b2b4e1feea54b607c227925029d353d3b8b6d67415b898347065c815883682fd32eeebc3a0a30b1367781523e8fcd89dfd4108e919437f2ca248313f62e2
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ Vagrantfile
2
+ .vagrant/
3
+ pkg/
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/README.md ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = "capistrano-secrets"
7
+ gem.version = '0.0.1'
8
+ gem.authors = ["Vadim Rastyagaev"]
9
+ gem.email = ["rastyagaev@gmail.com"]
10
+ gem.description = %q{Load application secrets from heroku app environment.}
11
+ gem.summary = %q{Load application secrets from heroku app environment.}
12
+ gem.homepage = "https://github.com/f-s-v/capistrano-secrets"
13
+
14
+ gem.files = `git ls-files`.split($/)
15
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
+ gem.require_paths = ["lib"]
17
+
18
+ gem.add_dependency 'capistrano', '~> 3.1'
19
+ end
File without changes
@@ -0,0 +1 @@
1
+ load File.expand_path("../tasks/secrets.rake", __FILE__)
@@ -0,0 +1,19 @@
1
+ namespace :secrets do
2
+ desc 'Copy secrets from heroku app to application'
3
+ task 'copy' do
4
+ settings = `heroku config --app #{fetch(:secrets_app_name)} | grep '#{fetch(:secrets_app_pattern)}'`
5
+ on roles :app do
6
+ upload! StringIO.new(settings), shared_path.join('.env')
7
+ end
8
+ end
9
+
10
+ desc 'Ensure shared .env file'
11
+ task 'check_dotenv' do
12
+ on roles :app do
13
+ unless test("[ -f #{shared_path.join('.env')} ]")
14
+ invoke("secrets:copy")
15
+ end
16
+ end
17
+ end
18
+ end
19
+ after "deploy:check:directories", "secrets:check_dotenv"
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-secrets
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Vadim Rastyagaev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ description: Load application secrets from heroku app environment.
28
+ email:
29
+ - rastyagaev@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - Gemfile
36
+ - README.md
37
+ - Rakefile
38
+ - capistrano-secrets.gemspec
39
+ - lib/capistrano-secrets.rb
40
+ - lib/capistrano/secrets.rb
41
+ - lib/capistrano/tasks/secrets.rake
42
+ homepage: https://github.com/f-s-v/capistrano-secrets
43
+ licenses: []
44
+ metadata: {}
45
+ post_install_message:
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubyforge_project:
61
+ rubygems_version: 2.2.0
62
+ signing_key:
63
+ specification_version: 4
64
+ summary: Load application secrets from heroku app environment.
65
+ test_files: []