capistrano-linuxpl 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: bdbc1c8f75e22637f9a320d476834a8f63da5ee8
4
- data.tar.gz: 6d42d0cc43f21b2d75d8ce3879c17a4094f328a8
3
+ metadata.gz: 74425ad78096321db1002fd96caf9d0d16874cab
4
+ data.tar.gz: 1034f056022a81783b7cc1617cc26261aa176aeb
5
5
  SHA512:
6
- metadata.gz: 316e92db7833d2f01042032299e67b47d74cc41d7a19accddaa465460bb1750dd3ba6e52cb1585828e5ca064493cc8782833a7d2a54f4df764dd7ba48a763c5c
7
- data.tar.gz: 4d3bd112185d6941ecd3f44464ebc04f0e3422821b69c231b1e584fd403bb5142971f5b82a8365f2af95c011cb0ce25d0d27c71f3dd4e3ce6674a5897a0840a8
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
@@ -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__)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Linuxpl
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -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.2
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-24 00:00:00.000000000 Z
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