railman-deployment 2.0.7 → 2.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55fa53ea596bcab9b0c64320c338c44368de224cc121b40450f4d2d1eba38a27
4
- data.tar.gz: 33785856e80da5faa2fb56c0f71089b5b4da111bb0485dd25346a1fe4e99fc96
3
+ metadata.gz: aa438b0a9ca03b219e6936ff61de74d283bd8407f34a7e152ace435d422c4ab3
4
+ data.tar.gz: 29d7c2c077d20a01929b8b87b0b2adbbd3658ba214bf8245432b1bfbd1c74f2d
5
5
  SHA512:
6
- metadata.gz: 8f2371bdae26dc3f4c3fb03b058a29bf382816522963f6378a5fdf6c555ac851d8245ab62ae5bb679f1b4b6d72843bb093f1a85a17a913914d30b5c549a5fe0a
7
- data.tar.gz: a6c328617101e471938d04f27e43c9e6067ebffa96685f08f7e9adb0963c0b7caf7c2507f27116001d51e7749b3fdae64cdbf9805e88bec85df8398d1c115fe3
6
+ metadata.gz: eecc9965ef8de6dc0b3ca57dee059b57d7b99799cbe09829a0a243a5d9c2c62f81405334543073357ccb4db85c17fabeddac3fc195167203914f869158185aa1
7
+ data.tar.gz: '02496e5d8da5b13e00891e9ec11dc517d6c84118fed4494690a6473ac4ed76c60d8a901c0bf568a1298b1d1b015fa2e010a2cf0143bd71b860bf5345ad7154fd'
@@ -1,3 +1,3 @@
1
1
  module RailmanDeployment
2
- VERSION = '2.0.7'
2
+ VERSION = '2.0.8'
3
3
  end
@@ -43,11 +43,6 @@ desc 'Remove the application completely from the server'
43
43
  task :remove do
44
44
  on roles(:all) do
45
45
  with fetch(:environment) do
46
- # dropt the database and remove the application directory from /home/deploy/apps
47
- within fetch(:deploy_to) do
48
- execute :rake, 'db:drop'
49
- execute :su_rm, "-rf #{fetch(:deploy_to)}"
50
- end if test "[ -d #{fetch(:deploy_to)} ]"
51
46
  # stop, disable and remove systemd service files
52
47
  execute :systemctl, :stop, fetch(:application)
53
48
  execute :systemctl, :stop, "#{fetch(:application)}_sidekiq"
@@ -55,6 +50,11 @@ task :remove do
55
50
  execute :systemctl, :disable, "#{fetch(:application)}_sidekiq"
56
51
  execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}.service"
57
52
  execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}_sidekiq.service"
53
+ # dropt the database and remove the application directory from /home/deploy/apps
54
+ within fetch(:deploy_to) do
55
+ execute :rake, 'db:drop'
56
+ execute :su_rm, "-rf #{fetch(:deploy_to)}"
57
+ end if test "[ -d #{fetch(:deploy_to)} ]"
58
58
  # remove application nginx configuration
59
59
  execute :su_rm, "-f /etc/nginx/conf.d/#{fetch(:application)}.conf"
60
60
  execute :systemctl, :restart, :nginx
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railman-deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev