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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb4e11d12db98de66dd3d2c91b08266e60c87dc2
4
- data.tar.gz: 6f932877bc38b865bbb187ae62bb6566bc3d66e4
3
+ metadata.gz: 88e639b8f32e81ef68d93907b57d825d84f50d51
4
+ data.tar.gz: 74c4ca3f205029a4083d8be932d87ca297bc7eec
5
5
  SHA512:
6
- metadata.gz: eb734a2e12ee6163805ec7b6b577b648fb062ba30641f3e31a5eade630cc769019dd6f0b3f4d11d22f761e673de9c406f546d127e235a02d132b990b9b5f7ea1
7
- data.tar.gz: e51241ee3450c6ad5ee1991d73da5ab32c4963ee061e0e566e312fad67f01680584be223762cbaa5e17e6f7e97e115551f8f3c8d303cc64990c51a511abc33cc
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: -> { !!fetch(:addNginx) }, overwrite: true},
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
@@ -1,3 +1,3 @@
1
1
  module Capun
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
@@ -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.25
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-14 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler