capistrano-exfel 0.0.5 → 0.0.6

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: 6dcb0bb67c318da2e3105cf65974c69b9f0c300b
4
- data.tar.gz: bb92cbec553e77fd9809fd16c26ccbe9b624be0e
3
+ metadata.gz: d93c7a1c63f291d582abe4f3cafc84f415ab1607
4
+ data.tar.gz: 4b05eff2f7548c9ff5e1f34d864c3368f72adb46
5
5
  SHA512:
6
- metadata.gz: 0ede74eb659433eab10f686705a8ca55b92a634c6415d93076a84dff184ee3d70fbfea9b03ad5a355186d58d5163a0019e1f1a3c70050c03be757c3e65bc083d
7
- data.tar.gz: 481b75b45e94ad49346758a2210b2ffcb09a596d5274c1c0aff54533a69dfb934fe96f7561d07c3c74a7fc5e6976eca33f513917fa9dbfcd630cf764c5552326
6
+ metadata.gz: 98d013889bbeaf37ba85a1d6bfc015eb3dcd818c5ac1252a4fe6a45db1450c30511ce1d6c5ea449075214a58aebf09d453a7c39d02e812cf7838cd0f6d76d73a
7
+ data.tar.gz: 4eb5dcfb0c204617eaa8329bc5c04904e10b6677ff83f9b5ae38df460e015d718091d4f50ac53345982c1a28dfacfb038d5b1a6bf48af73d7e2adf2aea3c3370
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.5'
15
+ gem 'capistrano-exfel', '~> 0.0.6'
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.5'
4
+ VERSION = '0.0.6'
5
5
  end
6
6
  end
@@ -106,12 +106,17 @@ namespace :app_home do
106
106
  end
107
107
  end
108
108
 
109
- task :reload_server_cache do
109
+ task :clear_tmp_files do
110
110
  on roles(:app), in: :sequence, wait: 5 do
111
111
  debug '#' * 100
112
112
  debug 'rake tmp:clear'
113
113
  execute_rake_command('tmp:clear')
114
+ debug '#' * 100
115
+ end
116
+ end
114
117
 
118
+ task :reload_server_cache do
119
+ on roles(:app), in: :sequence, wait: 5 do
115
120
  debug '#' * 100
116
121
  debug "wget -v -p --spider https://in.xfel.eu/#{fetch(:app_name_uri)}"
117
122
  execute :wget, "-v -p --spider https://in.xfel.eu/#{fetch(:app_name_uri)}"
@@ -42,6 +42,7 @@ namespace :application do
42
42
 
43
43
  desc 'Restarts the application, including reloading server cache'
44
44
  task :restart do
45
+ invoke 'app_home:clear_tmp_files'
45
46
  # invoke 'app_home:restart'
46
47
  invoke 'apache:restart'
47
48
  invoke 'app_home:reload_server_cache'
@@ -102,7 +103,10 @@ namespace :load do
102
103
  end
103
104
 
104
105
  # Build default application URI
105
- set :default_app_uri, -> { "#{get_rails_env_abbr}_#{fetch(:app_name)}" }
106
+ set :default_app_uri, -> do
107
+ "#{fetch(:app_name)}" if get_rails_env_abbr.blank?
108
+ "#{get_rails_env_abbr}_#{fetch(:app_name)}" unless get_rails_env_abbr.blank?
109
+ end
106
110
 
107
111
  set :app_name_uri, -> do
108
112
  ask("Please specify the application URI (i.e. #{fetch(:default_app_uri)})", fetch(:default_app_uri))
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Maia