capun 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capun/setup.rb +1 -1
- data/lib/capun/version.rb +1 -1
- data/lib/generators/capun/install_generator.rb +1 -0
- data/lib/generators/capun/stage_generator.rb +0 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88e639b8f32e81ef68d93907b57d825d84f50d51
|
4
|
+
data.tar.gz: 74c4ca3f205029a4083d8be932d87ca297bc7eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c66bbd507b47fe438ef003629531eb4d0923227240a9a15001e386822bcad992974ac094878b8961b738b4bae66f31c31e1fe12ab11858bc91c875c721de40cf
|
7
|
+
data.tar.gz: ee5072b1f0f316e1bfcd0222a311805445030b9c085a11ea1dcb518ff2c0d51b3d91c95bba74a5b510fb93aade5daff3a592533164111071a039477b74c15f17
|
data/lib/capun/setup.rb
CHANGED
@@ -27,7 +27,7 @@ set :std_uploads, [
|
|
27
27
|
# basic_authenticatable.rb
|
28
28
|
{what: "config/deploy/basic_authenticatable.rb.erb", where: '#{release_path}/app/controllers/concerns/basic_authenticatable.rb', upload: -> { !!fetch(:use_basic_auth) }, overwrite: true},
|
29
29
|
# nginx.conf
|
30
|
-
{what: "config/deploy/nginx.conf.erb", where: '#{shared_path}/config/nginx.conf', upload:
|
30
|
+
{what: "config/deploy/nginx.conf.erb", where: '#{shared_path}/config/nginx.conf', upload: true, overwrite: true},
|
31
31
|
# unicorn.config.rb
|
32
32
|
{what: "config/deploy/unicorn.config.rb.erb", where: '#{shared_path}/config/unicorn.config.rb', upload: true, overwrite: true},
|
33
33
|
# database.yml
|
data/lib/capun/version.rb
CHANGED
@@ -17,6 +17,7 @@ module Capun
|
|
17
17
|
empty_directory "config/deploy"
|
18
18
|
copy_file "database.yml.erb", "config/deploy/database.yml.erb"
|
19
19
|
copy_file "unicorn.config.rb.erb", "config/deploy/unicorn.config.rb.erb"
|
20
|
+
copy_file "nginx.conf.erb", "config/deploy/nginx.conf.erb"
|
20
21
|
copy_file "Capfile", "Capfile"
|
21
22
|
end
|
22
23
|
|
@@ -47,11 +47,6 @@ module Capun
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
def add_nginx
|
51
|
-
copy_file "nginx.conf.erb", "config/deploy/nginx.conf.erb"
|
52
|
-
append_to_file "config/deploy/#{singular_name}.rb", "\nset :addNginx, true"
|
53
|
-
end
|
54
|
-
|
55
50
|
def add_secret
|
56
51
|
if File.exists?("config/secrets.yml")
|
57
52
|
secret_token_does_not_exist = Thor::CoreExt::HashWithIndifferentAccess.new(::YAML::load_file("config/secrets.yml"))[singular_name].nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Zamylin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|