capistrano-exfel 0.0.20 → 0.1.0

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
- SHA1:
3
- metadata.gz: 863c072eaf83bac26e4f01edcfaafbfade077c2a
4
- data.tar.gz: e601f8573118b9f59a8508d1a90d331d4e6ad67d
2
+ SHA256:
3
+ metadata.gz: f40bcac5a5dbbbecebdf0c92fc81b31e153dfbc5651dd07582703b2678a2f9bf
4
+ data.tar.gz: f2b4f319989e38f588117e702ea042dfd2ffc2d420128807ba294e48ab5aea7d
5
5
  SHA512:
6
- metadata.gz: ea8a33d892bb74dd3178b90c2224adb418a1ae63c6c7e30ada574d503cd341d7accb59ae4431afd469a13e7c5994bac16180a2dc6ffa1fe1cefb31bb61729c49
7
- data.tar.gz: 87a187411b66dc8ed1f677d3fa7327068d3b63d84e41875a95b0bebf1234fd8a32ed0aa828624439d0bef20231c13f3da857fce640bc516de2cd8c1412b252f4
6
+ metadata.gz: 6b454f36f4d1270bc0514a1409a2ffa301d73202ed67d3be6ba2a5d7d749c25b2528593882e4d299bad998fb842261d2a138aaf024c72ae867a20a8c9121d089
7
+ data.tar.gz: ddd5dd1da6cbd1b591ac9c5d670cead275101fa3ebd68996bfcc12c49b91d41847cb02b182f8ab92145b650253663a640687bab972f0ebe77fd7baee284f6b17
@@ -29,3 +29,7 @@ Metrics/BlockLength:
29
29
  Style/IndentHeredoc:
30
30
  Exclude:
31
31
  - 'lib/capistrano/tasks/apache_sl6.rake'
32
+
33
+ # Use meaningful heredoc delimiters.
34
+ Naming/HeredocDelimiterNaming:
35
+ Enabled: false
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.49.1', require: false, group: :development
7
+ gem 'rubocop', '0.58.2', require: false, group: :development
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', '~> 3.4.0'
13
- gem 'capistrano-rails', '~> 1.1.2'
14
- gem 'capistrano-rvm', '~> 0.1.2'
15
- gem 'capistrano-exfel', '~> 0.0.20'
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:
@@ -1,6 +1,4 @@
1
- # coding: utf-8
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
@@ -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('../../tasks/apache.rake', __FILE__)
14
- load File.expand_path('../../tasks/apache_co7.rake', __FILE__)
15
- load File.expand_path('../../tasks/app_home.rake', __FILE__)
16
- load File.expand_path('../../tasks/assets.rake', __FILE__)
17
- load File.expand_path('../../tasks/application.rake', __FILE__)
18
- load File.expand_path('../../tasks/database.rake', __FILE__)
19
- load File.expand_path('../../tasks/secrets.rake', __FILE__)
20
- load File.expand_path('../../tasks/util.rake', __FILE__)
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__)
@@ -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('../../tasks/apache.rake', __FILE__)
14
- load File.expand_path('../../tasks/apache_sl6.rake', __FILE__)
15
- load File.expand_path('../../tasks/app_home.rake', __FILE__)
16
- load File.expand_path('../../tasks/assets.rake', __FILE__)
17
- load File.expand_path('../../tasks/application.rake', __FILE__)
18
- load File.expand_path('../../tasks/database.rake', __FILE__)
19
- load File.expand_path('../../tasks/secrets.rake', __FILE__)
20
- load File.expand_path('../../tasks/util.rake', __FILE__)
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__)
@@ -1,6 +1,6 @@
1
1
  module Capistrano
2
2
  # Capistrano::Exfel version information
3
3
  module Exfel
4
- VERSION = '0.0.20'.freeze
4
+ VERSION = '0.1.0'.freeze
5
5
  end
6
6
  end
@@ -45,11 +45,6 @@ CustomLog logs/ssl_request_log \
45
45
 
46
46
  Alias /<<APPLICATION_NAME>> /var/www/html/<<APPLICATION_NAME>>
47
47
 
48
- #
49
- # Passenger
50
- #
51
- PassengerResolveSymlinksInDocumentRoot on
52
-
53
48
  #
54
49
  # Application
55
50
  #
@@ -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('../../recipes/co7/00-passenger.conf', __FILE__)
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('../../recipes/co7/apache_http.conf', __FILE__)
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('../../recipes/co7/apache_ssl.conf', __FILE__)
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('../../recipes/co7/httpd.conf', __FILE__)
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('../../recipes/apache_http.conf', __FILE__)
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('../../recipes/apache_ssl.conf', __FILE__)
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 :compile_assets => [:set_rails_env] do
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('../../recipes/config/secrets_example.yml', __FILE__)
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.20
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: 2017-07-29 00:00:00.000000000 Z
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.6.12
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