capistrano-linuxpl 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/capistrano/linuxpl.rb +2 -1
- data/lib/capistrano/linuxpl/version.rb +1 -1
- data/lib/capistrano/tasks/clean_assets.rake +13 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74425ad78096321db1002fd96caf9d0d16874cab
|
4
|
+
data.tar.gz: 1034f056022a81783b7cc1617cc26261aa176aeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb21dedd3b1d9b5d2a666de69ff104576ea7c916e13e9a5450bb7e054582a16098641ed235fc1c8d76c95b771311dce7c9d69cf41d7ce968b47b92480a0c8497
|
7
|
+
data.tar.gz: 930646001f9e30293ac5d9f3f7cc99df1e2871376604934023b242cd714d5e22c66a8f6aa3e92bdb677385bd98ced88a0dd51876d4e46d4412b9f9214afdba1e
|
data/README.md
CHANGED
@@ -23,8 +23,14 @@ And then execute:
|
|
23
23
|
|
24
24
|
after 'deploy:log_revision', 'deploy:restart_server'
|
25
25
|
before :deploy, :precompile_assets
|
26
|
+
after 'deploy:restart_server', 'clean_assets'
|
27
|
+
|
26
28
|
```
|
27
29
|
|
30
|
+
## Deploy changes to gem
|
31
|
+
gem build
|
32
|
+
gem push
|
33
|
+
|
28
34
|
## Contributing
|
29
35
|
|
30
36
|
1. Fork it
|
data/lib/capistrano/linuxpl.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'capistrano'
|
2
2
|
|
3
3
|
load File.expand_path("../tasks/precompile_assets.rake", __FILE__)
|
4
|
-
load File.expand_path("../tasks/restart_server.rake", __FILE__)
|
4
|
+
load File.expand_path("../tasks/restart_server.rake", __FILE__)
|
5
|
+
load File.expand_path("../tasks/clean_assets.rake", __FILE__)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'capistrano'
|
4
|
+
|
5
|
+
task :clean_assets do
|
6
|
+
run_locally do
|
7
|
+
execute(:rm, "-rf public/assets/*")
|
8
|
+
execute(:rm, "-rf public/assets/.sprockets-manifest*")
|
9
|
+
execute(:rm, "-rf public/webpack/production/*")
|
10
|
+
execute('git add . && git commit -m "clean assets after deployment"')
|
11
|
+
execute("git push origin #{fetch(:branch)}")
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-linuxpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mariusz Błaszczak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- lib/capistrano-linuxpl.rb
|
68
68
|
- lib/capistrano/linuxpl.rb
|
69
69
|
- lib/capistrano/linuxpl/version.rb
|
70
|
+
- lib/capistrano/tasks/clean_assets.rake
|
70
71
|
- lib/capistrano/tasks/precompile_assets.rake
|
71
72
|
- lib/capistrano/tasks/restart_server.rake
|
72
73
|
homepage: https://github.com/blaszczakphoto/capistrano-linuxpl
|