capistrano-exfel 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/capistrano/exfel/version.rb +1 -1
- data/lib/capistrano/recipes/config/secrets_example.yml +84 -24
- data/lib/capistrano/tasks/app_home.rake +4 -0
- data/lib/capistrano/tasks/application.rake +1 -1
- data/lib/capistrano/tasks/database.rake +2 -2
- data/lib/capistrano/tasks/util.rake +2 -2
- 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: 33643e7cffe9b751e31d9913c78aa31839e1c53f
|
4
|
+
data.tar.gz: 6c90d67c07a61d4e1bcdda7bdbd3635b269edd16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 084e03947c09faf21437a7ae52b76345583284840789a06819947c38e6fd7a5389c1dc81b8494c75cb02260099c58f3fa644c6205ec6423ebf32a63f9f0f5be4
|
7
|
+
data.tar.gz: a002042bf84b16a385f63ce3b2ff3a047bca74256fb48fb30dd75329bffc55b279990daa8deb38315515f401b101b36230d024c2d4d0efad7d3c4a0694030e9f
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -10,38 +10,98 @@
|
|
10
10
|
# Make sure the secrets in this file are kept private
|
11
11
|
# if you're sharing your code publicly.
|
12
12
|
|
13
|
-
|
13
|
+
defaults: &defaults
|
14
14
|
# Application secret_key_base (run 'rake secret' to generate a new secret)
|
15
15
|
secret_key_base: '___secret_that_must_be_replaced_after_deploy___'
|
16
16
|
|
17
17
|
# Application name
|
18
18
|
app_name: 'MyApp'
|
19
19
|
|
20
|
-
|
21
|
-
#
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
# Domain where the application is available including the http(s) protocol (e.g. https://in.xfel.eu/)
|
21
|
+
# Note that the final '/' character is mandatory
|
22
|
+
# Examples:
|
23
|
+
# * 'http://localhost:3000/' - The application is available under 'localhost'
|
24
|
+
# * 'https://in.xfel.eu/' - The application is available under a server RackBaseURI
|
25
|
+
site_domain: 'http://localhost:3000/'
|
26
|
+
#site_domain: 'https://in.xfel.eu/'
|
26
27
|
|
27
|
-
|
28
|
-
|
28
|
+
# Sub domain where the application is available (e.g. my_app)
|
29
|
+
# Examples:
|
30
|
+
# * "" - The application is available under '/' (the server root)
|
31
|
+
# * '/my_app' - The application is available under '/my_app'
|
32
|
+
app_sub_domain_uri: '/my_app' # guarantee that the leading slash is there if value isn't an empty String
|
33
|
+
#app_sub_domain_uri: ""
|
34
|
+
|
35
|
+
# Sub domain to be applied to the Router
|
36
|
+
# Examples:
|
37
|
+
# * "" - The application URI routing is done via HTTP Server (e.g. Apache or NGINX)
|
38
|
+
# * 'my_app' - The application URI routing must be done via code
|
39
|
+
routes_base_uri: 'my_app'
|
40
|
+
#routes_base_uri: ""
|
41
|
+
|
42
|
+
# Application full url to be used as config.action_mailer.default_url_options (e.g. https://in.xfel.eu/my_app)
|
43
|
+
app_full_url: 'http://localhost:3000/my_app'
|
44
|
+
|
45
|
+
# Google Analytics code
|
46
|
+
google_analytics_code: 'UA-XXXXXXXX-Y'
|
47
|
+
|
48
|
+
# # EMAIL CONFIGURATION
|
49
|
+
# #
|
50
|
+
# # email_configuration = {
|
51
|
+
# # address: 'smtp.gmail.com',
|
52
|
+
# # port: 587,
|
53
|
+
# # user_name: 'email@gmail.com',
|
54
|
+
# # password: 'password',
|
55
|
+
# # authentication: 'plain',
|
56
|
+
# # enable_starttls_auto: true
|
57
|
+
# # }
|
58
|
+
# #
|
59
|
+
# email_delivery_method: :smtp
|
60
|
+
# email_smtp_settings_address: 'smtp.gmail.com'
|
61
|
+
# email_smtp_settings_port: 587
|
62
|
+
# email_smtp_settings_user_name: 'email@gmail.com'
|
63
|
+
# email_smtp_settings_password: 'password'
|
64
|
+
# email_smtp_settings_authentication: 'plain'
|
65
|
+
|
66
|
+
# # email_configuration:
|
67
|
+
# # delivery_method: :smtp
|
68
|
+
# # smtp_settings:
|
69
|
+
# # address: 'smtp.example.com'
|
70
|
+
# # port: 25
|
71
|
+
# #
|
72
|
+
email_delivery_method: :smtp
|
73
|
+
email_smtp_settings_address: 'smtp.example.com'
|
74
|
+
email_smtp_settings_port: 25
|
75
|
+
|
76
|
+
# OMNIAUTH
|
29
77
|
#
|
30
|
-
|
78
|
+
# The option will only be visible and work if the provider:
|
79
|
+
# 1) Is present in array 'active_providers'
|
80
|
+
# 2) It's API and SECRET (or TITLE) is not Blank
|
81
|
+
#
|
82
|
+
# active_providers: ['kerberos', 'twitter', 'google_oauth2', 'linkedin', 'facebook', 'github']
|
83
|
+
active_providers: ['kerberos']
|
31
84
|
#
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
85
|
+
twitter_app_id: ""
|
86
|
+
twitter_app_secret: ""
|
87
|
+
google_app_id: ""
|
88
|
+
google_app_secret: ""
|
89
|
+
linkedin_app_id: ""
|
90
|
+
linkedin_app_secret: ""
|
91
|
+
facebook_app_id: ""
|
92
|
+
facebook_app_secret: ""
|
93
|
+
github_app_id: ""
|
94
|
+
github_app_secret: ""
|
95
|
+
kerberos_title: 'European-XFEL Registry'
|
96
|
+
|
97
|
+
#
|
98
|
+
development:
|
99
|
+
<<: *defaults
|
100
|
+
|
101
|
+
#
|
102
|
+
test:
|
103
|
+
<<: *defaults
|
36
104
|
|
37
|
-
#
|
38
|
-
# instead read values from the environment.
|
105
|
+
#
|
39
106
|
production:
|
40
|
-
|
41
|
-
#
|
42
|
-
app_name: 'MyApp'
|
43
|
-
#
|
44
|
-
site_domain: 'https://in.xfel.eu/'
|
45
|
-
app_sub_domain_name: 'my_app'
|
46
|
-
routes_base_uri: ''
|
47
|
-
app_full_url: 'https://in.xfel.eu/my_app'
|
107
|
+
<<: *defaults
|
@@ -83,6 +83,10 @@ namespace :app_home do
|
|
83
83
|
debug "chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
|
84
84
|
execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
|
85
85
|
|
86
|
+
# Give write permissions to groups
|
87
|
+
debug "chmod g+ws #{fetch(:shared_config_path)}"
|
88
|
+
execute "#{sudo_cmd} chown -Rf g+w #{fetch(:shared_path)}/tmp/"
|
89
|
+
|
86
90
|
debug '#' * 50
|
87
91
|
end
|
88
92
|
end
|
@@ -103,7 +103,7 @@ namespace :load do
|
|
103
103
|
end
|
104
104
|
|
105
105
|
# Build default application URI
|
106
|
-
set :default_app_uri, -> {
|
106
|
+
set :default_app_uri, -> { rails_default_app_name }
|
107
107
|
|
108
108
|
set :app_name_uri, -> do
|
109
109
|
ask("Please specify the application URI (i.e. #{fetch(:default_app_uri)})", fetch(:default_app_uri))
|
@@ -48,8 +48,8 @@ namespace :database do
|
|
48
48
|
debug 'Create and configure database.yml file'
|
49
49
|
|
50
50
|
default_host = '127.0.0.1'
|
51
|
-
default_database =
|
52
|
-
default_username =
|
51
|
+
default_database = rails_default_db_name
|
52
|
+
default_username = rails_default_db_name
|
53
53
|
default_password = ''
|
54
54
|
|
55
55
|
set :db_orig_file_path, File.expand_path("../../recipes/config/#{fetch(:database_original_file_name)}", __FILE__)
|
@@ -10,12 +10,12 @@ def get_command_output(command)
|
|
10
10
|
capture("#{command}").strip
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
13
|
+
def rails_default_app_name
|
14
14
|
return "#{fetch(:app_name)}" if get_rails_env_abbr == 'prod'
|
15
15
|
"#{get_rails_env_abbr}_#{fetch(:app_name)}"
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
18
|
+
def rails_default_db_name
|
19
19
|
return "#{fetch(:app_name)}" if get_rails_env_abbr == 'prod'
|
20
20
|
"#{fetch(:app_name)}_#{get_rails_env_abbr}"
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-exfel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis Maia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|