capistrano-atlas 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: 9c885d883e4d3bff0340400bee4201e6bccb10a1
4
- data.tar.gz: 0e7add1b3f70648cd1e5bde09f83eb1dbe033187
3
+ metadata.gz: a53daddae5d0f837b3144d69fedd6797a78b5673
4
+ data.tar.gz: 6c5bbed03968a35f39491c053c4d187adeb2d727
5
5
  SHA512:
6
- metadata.gz: 0c90b350303309f4cf977d1cfc7ee511dbe603f7eda8ca41458cc97fd25ba61bc90b7c7291dbc26ff41e2a50dc62f1983aac056da34964c9515bc469ab6514a0
7
- data.tar.gz: 40d7dd8264863b2bad4d1752a6993468741221f271e09cfb0f4e6dc6e0a2efba3a8194ae1009ae53181797cc7b4c22601b7f5ee8e826c0eec8822b01c7f74952
6
+ metadata.gz: 543a142dde1de38f324afb384e3a75056cc9cfe7b61ae553defc16a878b7cfea6e75bcb7430b0d00f92ce366997980d273cd4f690c4b86e1a9d3524f345535f2
7
+ data.tar.gz: 87c51abd5f5b574e83402aaafc577b8d9d3f3184936601228964ddf072a93c3b45d9865876736a9afea5ed52d213f829f384a68f4fd810cc8c6f94297086c40a
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Atlas
3
- VERSION = "0.0.3".freeze
3
+ VERSION = "0.0.4".freeze
4
4
  end
5
5
  end
@@ -9,15 +9,17 @@ namespace :atlas do
9
9
  task :configure do
10
10
  rules = fetch(:atlas_ufw_rules, {})
11
11
 
12
- execute "sudo fallocate -l 4G /swapfile"
13
- execute "sudo chmod 600 /swapfile"
14
- execute "sudo mkswap /swapfile"
15
- execute "sudo swapon /swapfile"
16
- execute "sudo echo \"/swapfile none swap sw 0 0\" > /etc/fstab"
17
- execute "sudo sysctl vm.swappiness=10"
18
- execute "sudo echo \"vm.swappiness=10\" > /etc/sysctl.conf"
19
- execute "sudo sysctl vm.vfs_cache_pressure=50"
20
- execute "sudo echo \"vm.vfs_cache_pressure = 50\" > /etc/sysctl.conf"
12
+ on release_roles(:all) do
13
+ execute "sudo fallocate -l 4G /swapfile"
14
+ execute "sudo chmod 600 /swapfile"
15
+ execute "sudo mkswap /swapfile"
16
+ execute "sudo swapon /swapfile"
17
+ execute "sudo echo \"/swapfile none swap sw 0 0\" > /etc/fstab"
18
+ execute "sudo sysctl vm.swappiness=10"
19
+ execute "sudo echo \"vm.swappiness=10\" > /etc/sysctl.conf"
20
+ execute "sudo sysctl vm.vfs_cache_pressure=50"
21
+ execute "sudo echo \"vm.vfs_cache_pressure = 50\" > /etc/sysctl.conf"
22
+ end
21
23
  end
22
24
 
23
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-atlas
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
  - John McDowall