capistrano-exfel 0.0.3 → 0.0.4

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: 7d4b2db13e0647bc4d83d0c8d96a17bcc3f32815
4
- data.tar.gz: b2623f8c30b472fe140f90b0fe059dbad62c8487
3
+ metadata.gz: 2b4a873adad3ef206ff361f74db0bc3f0ecfde2b
4
+ data.tar.gz: 677550b05775c19439f9c7fe154bfd653e876f8d
5
5
  SHA512:
6
- metadata.gz: 10f1b98400d54c171216746efe087043c32a742416b82634063fff7df10ec50047ed64cb9975fc3289f1ebb8d5ffac36935dc9cb7e63cc39b634db3d8a95a979
7
- data.tar.gz: 471e7b436d7d2d444056227f0ee01119199fce74991c9b416355ebbba194cf6571342e20c1eee703343649d7ddafd312aa946c6c6c0112873ec280602cba8a7d
6
+ metadata.gz: 8b30622303b038d35790408e5c47afa450720199f8317eed3344ecd5183f9d82484894aca7e2d4fe24aebc27b5f51443ad5cbf5c5196e813e49566595636f897
7
+ data.tar.gz: edf5dc53e86ac205369c542b58a80248d32841f11702359c3bb38e57be68daa38c23bd13644aae7a82a2d73249a30347cba05936ba843e34f030e446546c5390
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.3'
15
+ gem 'capistrano-exfel', '~> 0.0.4'
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.3'
4
+ VERSION = '0.0.4'
5
5
  end
6
6
  end
@@ -79,13 +79,6 @@ namespace :app_home do
79
79
  debug "chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/log"
80
80
  execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/log"
81
81
 
82
- # # Only files should be changed
83
- # debug "chown nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/config/*"
84
- # execute "#{sudo_cmd} chown nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/config/*"
85
- #
86
- # debug "chmod 440 #{fetch(:shared_path)}/config/*"
87
- # execute "#{sudo_cmd} chmod 440 #{fetch(:shared_path)}/config/*"
88
-
89
82
  # Needs write permissions
90
83
  debug "chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
91
84
  execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
@@ -94,11 +87,30 @@ namespace :app_home do
94
87
  end
95
88
  end
96
89
 
90
+ desc 'Correct public folder permissions'
91
+ task :correct_public_folder_permissions do
92
+ on roles(:app) do
93
+ within release_path do
94
+ sudo_cmd = "echo #{fetch(:password)} | sudo -S"
95
+
96
+ debug '#' * 50
97
+ set :public_folder_path, "#{release_path}/public"
98
+
99
+ debug '#' * 50
100
+ chown_command = "chown -Rf nobody.#{fetch(:app_group_owner)} #{fetch(:public_folder_path)}/*"
101
+ debug chown_command
102
+ execute "#{sudo_cmd} #{chown_command}"
103
+
104
+ debug '#' * 50
105
+ end
106
+ end
107
+ end
108
+
97
109
  task :reload_server_cache do
98
110
  on roles(:app), in: :sequence, wait: 5 do
99
111
  debug '#' * 100
100
- debug "curl https://in.xfel.eu/#{fetch(:app_name_uri)} -v"
101
- execute :curl, "https://in.xfel.eu/#{fetch(:app_name_uri)} -v"
112
+ debug "wget -v -p --spider https://in.xfel.eu/#{fetch(:app_name_uri)}"
113
+ execute :wget, "-v -p --spider https://in.xfel.eu/#{fetch(:app_name_uri)}"
102
114
  debug 'Application visited successfully...'
103
115
  debug '#' * 100
104
116
  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.3
4
+ version: 0.0.4
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-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler