git-runner-deploy 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Git Runner - Deploy
2
2
 
3
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/JamesBrooks/git-runner-deploy)
4
+
5
+
3
6
  Capistrano deploy functionality for [Git Runner](https://github.com/JamesBrooks/git-runner)
4
7
 
5
8
  Added deployment functionality (using capistrano) to be integrated into Git Runner
@@ -16,5 +16,5 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.require_paths = ["lib"]
18
18
 
19
- gem.add_dependency 'git-runner', '>= 0.1.0'
19
+ gem.add_dependency 'git-runner', '>= 0.1.1'
20
20
  end
@@ -7,7 +7,7 @@ module GitRunner
7
7
 
8
8
  # Performs deployments using capistrano (cap deploy)
9
9
  class Deploy < Base
10
- VERSION = '0.1.0'
10
+ VERSION = '0.1.1'
11
11
 
12
12
  attr_accessor :clone_directory
13
13
 
@@ -17,6 +17,8 @@ module GitRunner
17
17
  end
18
18
 
19
19
  def perform
20
+ GitRunner::Hooks.fire(:deploy_begin, self)
21
+
20
22
  start_time = Time.now
21
23
 
22
24
  Text.out(Text.green("Performing Deploy (#{environment_from_branch(branch)})"), :heading)
@@ -30,6 +32,11 @@ module GitRunner
30
32
  end_time = Time.now
31
33
 
32
34
  Text.out(Text.green("\u2714 Deploy successful, completed in #{(end_time - start_time).ceil} seconds"))
35
+
36
+
37
+ rescue Exception => ex
38
+ GitRunner::Hooks.fire(:deploy_failure, self)
39
+ raise ex
33
40
  end
34
41
 
35
42
 
@@ -93,6 +100,8 @@ module GitRunner
93
100
  :errproc => method(:cap_deploy_outproc)
94
101
  )
95
102
  end
103
+
104
+ GitRunner::Hooks.fire(:deploy_success, self)
96
105
  end
97
106
 
98
107
  def cap_deploy_outproc(out)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-runner-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-12 00:00:00.000000000 Z
12
+ date: 2012-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: git-runner
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.1.0
21
+ version: 0.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.1.0
29
+ version: 0.1.1
30
30
  description: Capistrano deploy module for git-runner
31
31
  email:
32
32
  - james@jamesbrooks.net