capistrano-exfel 0.0.16 → 0.0.17

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: 2d5b83d102f385412f3033766066c168e36c0664
4
- data.tar.gz: dee59900cbfcefe28b4daf36524972b0ff3a356b
3
+ metadata.gz: 95dd80dbaa8df5fc542124be50a2408e313c319f
4
+ data.tar.gz: 531b15f2bcd149ddceb9cf9717df87deda34769a
5
5
  SHA512:
6
- metadata.gz: a433e4230b37e00f681ebf6999bf8435a0de194ab0ea6f0916782d95ea30f8d450e81e0cb98ae3a56d3567b71ff9f762d97d3cf27465fc48808b5653d427ac9e
7
- data.tar.gz: 214ac7f19d5ad2457930a501282abefb66e5a502a5198eab2cc5818ae9b44e72320e2e4857d6e1e2397c051a6eaf727a6c1ed9188cee2b95032520d571923e15
6
+ metadata.gz: 213c98a64155ec999365fbd1d68ef918b4706e2d7b97d6f1efdd77f475086767471e35d430bc9d641ff3f4e3770ac7f463fc1a6cbd480912197459d777550be2
7
+ data.tar.gz: 9cce640671bc6df2e58d1d08bd8dd318a8318783dfc1d32530a2b07ae63147864fcc9e57d0c9a43220d025c587ba4d423e5a9f19138a98afe621bc1d427a1ff9
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Capistrano::Exfel
2
2
 
3
3
  Deploys Ruby on Rails Applications in EXFEL VMs using Capistrano3 throw username/password authentication.
4
- The standard EXFEL VMs consist of Scientific Linux 6 with Apache.
4
+ The standard EXFEL VMs consist of Scientific Linux 6 or CentOS 7 with Apache.
5
5
  Installation of Phusion Passenger and RVM are also required to this gem.
6
6
 
7
7
  ## Installation
@@ -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.16'
15
+ gem 'capistrano-exfel', '~> 0.0.17'
16
16
 
17
17
  And then execute:
18
18
 
@@ -7,9 +7,16 @@ require 'capistrano/deploy'
7
7
  # Includes tasks from other gems included in your Gemfile
8
8
  require 'capistrano/rvm'
9
9
 
10
- # We're going to use the full capistrano/rails since
11
- # it includes the asset compilation, DB migrations and bundler
12
- require 'capistrano/rails'
10
+ case fetch(:rails_env).to_s
11
+ when 'production', 'test'
12
+ # We're going to use the full capistrano/rails since
13
+ # it includes the asset compilation, DB migrations and bundler
14
+ require 'capistrano/rails'
15
+ else # when 'development'
16
+ # we avoid asset precompilation in dev environment
17
+ require 'capistrano/bundler'
18
+ require 'capistrano/rails/migrations'
19
+ end
13
20
 
14
21
  load File.expand_path('../../tasks/apache.rake', __FILE__)
15
22
  load File.expand_path('../../tasks/apache_co7.rake', __FILE__)
@@ -7,9 +7,16 @@ require 'capistrano/deploy'
7
7
  # Includes tasks from other gems included in your Gemfile
8
8
  require 'capistrano/rvm'
9
9
 
10
- # We're going to use the full capistrano/rails since
11
- # it includes the asset compilation, DB migrations and bundler
12
- require 'capistrano/rails'
10
+ case fetch(:rails_env).to_s
11
+ when 'production', 'test'
12
+ # We're going to use the full capistrano/rails since
13
+ # it includes the asset compilation, DB migrations and bundler
14
+ require 'capistrano/rails'
15
+ else # when 'development'
16
+ # we avoid asset precompilation in dev environment
17
+ require 'capistrano/bundler'
18
+ require 'capistrano/rails/migrations'
19
+ end
13
20
 
14
21
  load File.expand_path('../../tasks/apache.rake', __FILE__)
15
22
  load File.expand_path('../../tasks/apache_sl6.rake', __FILE__)
@@ -1,6 +1,6 @@
1
1
  module Capistrano
2
2
  # Capistrano::Exfel version information
3
3
  module Exfel
4
- VERSION = '0.0.16'.freeze
4
+ VERSION = '0.0.17'.freeze
5
5
  end
6
6
  end
@@ -84,17 +84,21 @@ namespace :app_home do
84
84
  debug "chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
85
85
  execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
86
86
 
87
- # Since the cache is local to any App instalation it's necessary to update their permissions
87
+ # Since the cache is local to any App installation it's necessary to update permissions
88
88
  app_cache_folder = release_path.join('tmp/cache')
89
89
 
90
- # Give write permissions to groups
91
- debug "chmod g+ws #{app_cache_folder}"
92
- execute "#{sudo_cmd} chmod -Rf g+w #{app_cache_folder}"
90
+ # make sure the folder exists (won't exists if the assets are not precompiled)
91
+ debug "mkdir -p #{app_cache_folder}"
92
+ execute "#{sudo_cmd} mkdir -p #{app_cache_folder}"
93
93
 
94
94
  # Phusion Passenger (as nobody) needs write permissions to cache folder
95
95
  debug "chown -R nobody.#{fetch(:app_group_owner)} #{app_cache_folder}"
96
96
  execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{app_cache_folder}"
97
97
 
98
+ # Give write permissions to groups
99
+ debug "chmod g+ws #{app_cache_folder}"
100
+ execute "#{sudo_cmd} chmod -Rf g+w #{app_cache_folder}"
101
+
98
102
  debug '#' * 50
99
103
  end
100
104
  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.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Maia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler