capistrano-exfel 0.0.20 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.rubocop.yml +4 -0
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/capistrano-exfel.gemspec +3 -5
- data/lib/capistrano/exfel/co7.rb +8 -8
- data/lib/capistrano/exfel/sl6.rb +8 -8
- data/lib/capistrano/exfel/version.rb +1 -1
- data/lib/capistrano/recipes/co7/apache_ssl.conf +0 -5
- data/lib/capistrano/tasks/apache_co7.rake +4 -4
- data/lib/capistrano/tasks/apache_sl6.rake +2 -2
- data/lib/capistrano/tasks/assets.rake +1 -1
- data/lib/capistrano/tasks/secrets.rake +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f40bcac5a5dbbbecebdf0c92fc81b31e153dfbc5651dd07582703b2678a2f9bf
|
4
|
+
data.tar.gz: f2b4f319989e38f588117e702ea042dfd2ffc2d420128807ba294e48ab5aea7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b454f36f4d1270bc0514a1409a2ffa301d73202ed67d3be6ba2a5d7d749c25b2528593882e4d299bad998fb842261d2a138aaf024c72ae867a20a8c9121d089
|
7
|
+
data.tar.gz: ddd5dd1da6cbd1b591ac9c5d670cead275101fa3ebd68996bfcc12c49b91d41847cb02b182f8ab92145b650253663a640687bab972f0ebe77fd7baee284f6b17
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -9,10 +9,10 @@ Installation of Phusion Passenger and RVM are also required to this gem.
|
|
9
9
|
Add these lines to your application's Gemfile:
|
10
10
|
|
11
11
|
# Use Capistrano for deployment
|
12
|
-
gem 'capistrano', '
|
13
|
-
gem 'capistrano-
|
14
|
-
gem 'capistrano-
|
15
|
-
gem 'capistrano-
|
12
|
+
gem 'capistrano', '3.11.0', require: false
|
13
|
+
gem 'capistrano-exfel', '0.1.0', require: false
|
14
|
+
gem 'capistrano-rails', '1.4.0', require: false
|
15
|
+
gem 'capistrano-rvm', '0.1.2', require: false
|
16
16
|
|
17
17
|
|
18
18
|
And then execute:
|
data/capistrano-exfel.gemspec
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
4
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
3
|
require 'capistrano/exfel/version'
|
6
4
|
|
@@ -12,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
12
10
|
spec.summary = 'Deploy Ruby on Rails 4 Applications in EXFEL Virtual Machines'
|
13
11
|
spec.description = 'Deployment of Ruby on Rails Applications in EXFEL Virtual Machines ' \
|
14
12
|
'(Scientific Linux / CentOS 7 + Apache + RVM + Phusion Passenger) using Capistrano3 and LDAP'
|
15
|
-
spec.homepage = ''
|
13
|
+
spec.homepage = 'https://github.com/luismaia/capistrano-exfel'
|
16
14
|
spec.license = 'MIT'
|
17
15
|
|
18
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -21,5 +19,5 @@ Gem::Specification.new do |spec|
|
|
21
19
|
spec.require_paths = ['lib']
|
22
20
|
|
23
21
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
24
|
-
spec.add_development_dependency 'rake', '> 10.0'
|
22
|
+
spec.add_development_dependency 'rake', '~> 10.0', '> 10.0'
|
25
23
|
end
|
data/lib/capistrano/exfel/co7.rb
CHANGED
@@ -10,11 +10,11 @@ require 'capistrano/rvm'
|
|
10
10
|
# Includes tasks for rails
|
11
11
|
require 'capistrano/rails'
|
12
12
|
|
13
|
-
load File.expand_path('
|
14
|
-
load File.expand_path('
|
15
|
-
load File.expand_path('
|
16
|
-
load File.expand_path('
|
17
|
-
load File.expand_path('
|
18
|
-
load File.expand_path('
|
19
|
-
load File.expand_path('
|
20
|
-
load File.expand_path('
|
13
|
+
load File.expand_path('../tasks/apache.rake', __dir__)
|
14
|
+
load File.expand_path('../tasks/apache_co7.rake', __dir__)
|
15
|
+
load File.expand_path('../tasks/app_home.rake', __dir__)
|
16
|
+
load File.expand_path('../tasks/assets.rake', __dir__)
|
17
|
+
load File.expand_path('../tasks/application.rake', __dir__)
|
18
|
+
load File.expand_path('../tasks/database.rake', __dir__)
|
19
|
+
load File.expand_path('../tasks/secrets.rake', __dir__)
|
20
|
+
load File.expand_path('../tasks/util.rake', __dir__)
|
data/lib/capistrano/exfel/sl6.rb
CHANGED
@@ -10,11 +10,11 @@ require 'capistrano/rvm'
|
|
10
10
|
# Includes tasks for rails
|
11
11
|
require 'capistrano/rails'
|
12
12
|
|
13
|
-
load File.expand_path('
|
14
|
-
load File.expand_path('
|
15
|
-
load File.expand_path('
|
16
|
-
load File.expand_path('
|
17
|
-
load File.expand_path('
|
18
|
-
load File.expand_path('
|
19
|
-
load File.expand_path('
|
20
|
-
load File.expand_path('
|
13
|
+
load File.expand_path('../tasks/apache.rake', __dir__)
|
14
|
+
load File.expand_path('../tasks/apache_sl6.rake', __dir__)
|
15
|
+
load File.expand_path('../tasks/app_home.rake', __dir__)
|
16
|
+
load File.expand_path('../tasks/assets.rake', __dir__)
|
17
|
+
load File.expand_path('../tasks/application.rake', __dir__)
|
18
|
+
load File.expand_path('../tasks/database.rake', __dir__)
|
19
|
+
load File.expand_path('../tasks/secrets.rake', __dir__)
|
20
|
+
load File.expand_path('../tasks/util.rake', __dir__)
|
@@ -24,7 +24,7 @@ namespace :apache do
|
|
24
24
|
debug 'Configure (HTTP) Apache Passenger module'
|
25
25
|
|
26
26
|
set :shared_passenger_file, "#{fetch(:shared_apache_path)}/00-passenger.conf"
|
27
|
-
passenger_file = File.expand_path('
|
27
|
+
passenger_file = File.expand_path('../recipes/co7/00-passenger.conf', __dir__)
|
28
28
|
|
29
29
|
upload! StringIO.new(File.read(passenger_file)), fetch(:shared_passenger_file).to_s
|
30
30
|
|
@@ -60,7 +60,7 @@ namespace :apache do
|
|
60
60
|
debug 'Configure (HTTP) Apache Application configuration files'
|
61
61
|
|
62
62
|
set :shared_apache_conf_file, "#{fetch(:shared_apache_path)}/app_#{fetch(:app_name_uri)}.conf"
|
63
|
-
http_file = File.expand_path('
|
63
|
+
http_file = File.expand_path('../recipes/co7/apache_http.conf', __dir__)
|
64
64
|
upload! StringIO.new(File.read(http_file)), fetch(:shared_apache_conf_file).to_s
|
65
65
|
|
66
66
|
debug "chmod g+w #{fetch(:shared_apache_conf_file)}"
|
@@ -87,7 +87,7 @@ namespace :apache do
|
|
87
87
|
debug 'Configure (HTTPS) Apache Application configuration files'
|
88
88
|
|
89
89
|
set :shared_apache_conf_ssl_file, "#{fetch(:shared_apache_path)}/app_#{fetch(:app_name_uri)}_ssl.conf"
|
90
|
-
http_ssl_file = File.expand_path('
|
90
|
+
http_ssl_file = File.expand_path('../recipes/co7/apache_ssl.conf', __dir__)
|
91
91
|
upload! StringIO.new(File.read(http_ssl_file)), fetch(:shared_apache_conf_ssl_file).to_s
|
92
92
|
|
93
93
|
debug "chmod g+w #{fetch(:shared_apache_conf_ssl_file)}"
|
@@ -122,7 +122,7 @@ namespace :apache do
|
|
122
122
|
|
123
123
|
# Create a temporary copy of the Apache configuration file
|
124
124
|
set :tmp_httpd_file, '/tmp/httpd.conf'
|
125
|
-
httpd_safe_file = File.expand_path('
|
125
|
+
httpd_safe_file = File.expand_path('../recipes/co7/httpd.conf', __dir__)
|
126
126
|
|
127
127
|
upload! StringIO.new(File.read(httpd_safe_file)), fetch(:tmp_httpd_file).to_s
|
128
128
|
|
@@ -23,7 +23,7 @@ namespace :apache do
|
|
23
23
|
debug 'Configure (HTTP) Apache Application configuration files'
|
24
24
|
|
25
25
|
set :shared_apache_conf_file, "#{fetch(:shared_apache_path)}/app_#{fetch(:app_name_uri)}.conf"
|
26
|
-
http_file = File.expand_path('
|
26
|
+
http_file = File.expand_path('../recipes/apache_http.conf', __dir__)
|
27
27
|
upload! StringIO.new(File.read(http_file)), fetch(:shared_apache_conf_file).to_s
|
28
28
|
|
29
29
|
debug "chmod g+w #{fetch(:shared_apache_conf_file)}"
|
@@ -56,7 +56,7 @@ namespace :apache do
|
|
56
56
|
debug 'Configure (HTTPS) Apache Application configuration files'
|
57
57
|
|
58
58
|
set :shared_apache_conf_ssl_file, "#{fetch(:shared_apache_path)}/app_#{fetch(:app_name_uri)}_ssl.conf"
|
59
|
-
http_ssl_file = File.expand_path('
|
59
|
+
http_ssl_file = File.expand_path('../recipes/apache_ssl.conf', __dir__)
|
60
60
|
upload! StringIO.new(File.read(http_ssl_file)), fetch(:shared_apache_conf_ssl_file).to_s
|
61
61
|
|
62
62
|
debug "chmod g+w #{fetch(:shared_apache_conf_ssl_file)}"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Rake::Task['deploy:compile_assets'].clear_actions
|
4
4
|
namespace :deploy do
|
5
|
-
task :
|
5
|
+
task compile_assets: [:set_rails_env] do
|
6
6
|
if %w[production test].include?(fetch(:rails_env).to_s)
|
7
7
|
invoke 'deploy:assets:precompile'
|
8
8
|
invoke 'deploy:assets:backup_manifest'
|
@@ -25,7 +25,7 @@ namespace :secrets do
|
|
25
25
|
debug 'Create and configure secrets.yml file'
|
26
26
|
secrets_file_path = fetch(:secrets_file_path).to_s
|
27
27
|
|
28
|
-
set :secrets_original_file_path, File.expand_path('
|
28
|
+
set :secrets_original_file_path, File.expand_path('../recipes/config/secrets_example.yml', __dir__)
|
29
29
|
|
30
30
|
unless remote_file_exists?(secrets_file_path)
|
31
31
|
upload! StringIO.new(File.read(fetch(:secrets_original_file_path).to_s)), fetch(:secrets_file_path).to_s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis Maia
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -29,6 +29,9 @@ dependencies:
|
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '10.0'
|
32
35
|
- - ">"
|
33
36
|
- !ruby/object:Gem::Version
|
34
37
|
version: '10.0'
|
@@ -36,6 +39,9 @@ dependencies:
|
|
36
39
|
prerelease: false
|
37
40
|
version_requirements: !ruby/object:Gem::Requirement
|
38
41
|
requirements:
|
42
|
+
- - "~>"
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '10.0'
|
39
45
|
- - ">"
|
40
46
|
- !ruby/object:Gem::Version
|
41
47
|
version: '10.0'
|
@@ -78,7 +84,7 @@ files:
|
|
78
84
|
- lib/capistrano/tasks/database.rake
|
79
85
|
- lib/capistrano/tasks/secrets.rake
|
80
86
|
- lib/capistrano/tasks/util.rake
|
81
|
-
homepage:
|
87
|
+
homepage: https://github.com/luismaia/capistrano-exfel
|
82
88
|
licenses:
|
83
89
|
- MIT
|
84
90
|
metadata: {}
|
@@ -98,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
104
|
version: '0'
|
99
105
|
requirements: []
|
100
106
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.7.7
|
102
108
|
signing_key:
|
103
109
|
specification_version: 4
|
104
110
|
summary: Deploy Ruby on Rails 4 Applications in EXFEL Virtual Machines
|