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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f057b3710c0708a8e73cc930a552a4d55d213c03
4
- data.tar.gz: 319c23cf4d843db2ee45343b9cc23ffc06635ba0
3
+ metadata.gz: 33643e7cffe9b751e31d9913c78aa31839e1c53f
4
+ data.tar.gz: 6c90d67c07a61d4e1bcdda7bdbd3635b269edd16
5
5
  SHA512:
6
- metadata.gz: f5e7e3103fe2dba6b5bccc93baca2e3f21f302ef6afff067e560915f0fc39cfcd96e924131f65dcdf583dfa69767a19eb70adb3a03035a40d1425c4f4a345ba9
7
- data.tar.gz: 3d758192be25dfd0f923216122bc0df70424fd936c793187e98fabcb36d944c9dc57a9e0116eb85bdac8e07d120ab8e8d199a36760e750d27e10ab480bb17009
6
+ metadata.gz: 084e03947c09faf21437a7ae52b76345583284840789a06819947c38e6fd7a5389c1dc81b8494c75cb02260099c58f3fa644c6205ec6423ebf32a63f9f0f5be4
7
+ data.tar.gz: a002042bf84b16a385f63ce3b2ff3a047bca74256fb48fb30dd75329bffc55b279990daa8deb38315515f401b101b36230d024c2d4d0efad7d3c4a0694030e9f
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  # Use Rubocop to validate ruby code syntax
7
- gem 'rubocop', '~> 0.29.1', require: false, group: :development
7
+ gem 'rubocop', '~> 0.30.1', require: false, group: :development
data/README.md CHANGED
@@ -12,7 +12,7 @@ Add these lines to your application's Gemfile:
12
12
  gem 'capistrano', '~> 3.4.0'
13
13
  gem 'capistrano-rails', '~> 1.1.2'
14
14
  gem 'capistrano-rvm', '~> 0.1.2'
15
- gem 'capistrano-exfel', '~> 0.0.7'
15
+ gem 'capistrano-exfel', '~> 0.0.8'
16
16
 
17
17
  And then execute:
18
18
 
@@ -1,6 +1,6 @@
1
1
  module Capistrano
2
2
  # Capistrano::Exfel version information
3
3
  module Exfel
4
- VERSION = '0.0.7'
4
+ VERSION = '0.0.8'
5
5
  end
6
6
  end
@@ -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
- development:
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
- ### config_ApacheServer_with_uri
21
- #
22
- site_domain: 'https://in.xfel.eu/'
23
- app_sub_domain_uri: 'dev_my_app'
24
- routes_base_uri: ''
25
- app_full_url: 'https://in.xfel.eu/dev_my_app'
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
- test:
28
- secret_key_base: '___secret_that_must_be_replaced_after_deploy___'
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
- app_name: 'MyApp'
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
- site_domain: 'https://in.xfel.eu/'
33
- app_sub_domain_name: 'test_my_app'
34
- routes_base_uri: ''
35
- app_full_url: 'https://in.xfel.eu/test_my_app'
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
- # Do not keep production secrets in the repository,
38
- # instead read values from the environment.
105
+ #
39
106
  production:
40
- secret_key_base: '___secret_that_must_be_replaced_after_deploy___'
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, -> { get_rails_default_app_name }
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 = get_rails_default_db_name
52
- default_username = get_rails_default_db_name
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 get_rails_default_app_name
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 get_rails_default_db_name
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.7
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-04-23 00:00:00.000000000 Z
11
+ date: 2015-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler