capistrano-strategy-copy-with-triggers 1.2 → 1.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: 289c0ccf98c391eeaf19e8b397caa56f87c6dded
4
- data.tar.gz: c65a080289a8eb0d4426c41104f2864e5977c774
3
+ metadata.gz: 16d10fc8829add1d708b3572c5bbf82cd967fde0
4
+ data.tar.gz: 1ed498a7543243890129f2889dc5a2f0e043a48b
5
5
  SHA512:
6
- metadata.gz: 2ed0321e0f5c53ef052adf711353d6e8445623a9e7ff1933a53d31564048cccb717124f7426847e186f8e8b54733423b785e3a908654588027c46aa56772b8f3
7
- data.tar.gz: 446ab0bc42957ea0c32c5a23fe8114a2519ed3956d2532ffc1c074112b18bafdd37e802789069fa91f8a23fd2fea7f476094e4d3e70f10baf47cf6f3306f5929
6
+ metadata.gz: 880603160ea6906f61d98d7516d6025d5ccec8287e8741e415d5a5d443166955051c7bfdd112809f160d8f5db1337dc34148b4b4862bcc33c3f4b9e757c1fd72
7
+ data.tar.gz: 5b6416ec55321994721bc1953eef889df1c6ed00c575124d9ff7193dae93f21b51c009a510027df803ab6b4ce870d738209470c32d42722944b508ff3650944c
File without changes
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "capistrano-strategy-copy-with-triggers"
6
+ s.version = 1.3
7
+ s.authors = ["Luca Bo"]
8
+
9
+ s.homepage = "http://github.com/peelandsee/capistrano-strategy-copy-with-triggers"
10
+ s.summary = %q{Capistrano copy recipe to transfer files with triggers}
11
+ s.description = %q{Same as copy strategy, but with triggers}
12
+
13
+ s.files = `git ls-files`.split("\n")
14
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
+ s.require_paths = ["lib"]
17
+
18
+ # specify any dependencies here; for example:
19
+ s.add_runtime_dependency "capistrano", "~> 2"
20
+ end
@@ -0,0 +1,3 @@
1
+ module CapistranoStrategyCopyWithTriggers; end
2
+
3
+ require 'capistrano/recipes/deploy/strategy/copy_with_triggers'
@@ -0,0 +1,45 @@
1
+ require 'capistrano'
2
+ require 'capistrano/recipes/deploy/strategy/copy'
3
+
4
+ module Capistrano
5
+ module Deploy
6
+ module Strategy
7
+
8
+ class CopyWithTriggers < Copy
9
+
10
+ def destinationpath
11
+ return destination
12
+ end
13
+
14
+ def initialize(config = {})
15
+ super(config)
16
+ end
17
+
18
+ def deploy!
19
+ logger.info "running Copy with Triggers strategy, a SharkDev creation!"
20
+
21
+ copy_cache ? run_copy_cache_strategy : run_copy_strategy
22
+
23
+ create_revision_file
24
+
25
+ configuration.trigger('strategy:before:compression')
26
+
27
+ logger.info "Compressing packaged app.."
28
+ compress_repository
29
+ configuration.trigger('strategy:after:compression')
30
+
31
+ logger.info "Distributing packaged app.."
32
+
33
+ configuration.trigger('strategy:before:distribute')
34
+ distribute!
35
+ configuration.trigger('strategy:after:distribute')
36
+ ensure
37
+ rollback_changes
38
+ end
39
+
40
+ end
41
+
42
+ end
43
+ end
44
+ end
45
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-strategy-copy-with-triggers
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Bo
@@ -29,7 +29,11 @@ email:
29
29
  executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
- files: []
32
+ files:
33
+ - README.md
34
+ - capistrano-strategy-copy-with-triggers.gemspec
35
+ - lib/capistrano-strategy-copy-with-triggers.rb
36
+ - lib/capistrano/recipes/deploy/strategy/copy_with_triggers.rb
33
37
  homepage: http://github.com/peelandsee/capistrano-strategy-copy-with-triggers
34
38
  licenses: []
35
39
  metadata: {}