rebuy_deployment 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rebuy_deployment/deploy.rb +9 -6
- metadata +10 -10
@@ -1,3 +1,4 @@
|
|
1
|
+
Encoding.default_internal = "UTF-8"
|
1
2
|
require 'mail'
|
2
3
|
|
3
4
|
def prompt_if_unset(name, default = '')
|
@@ -124,12 +125,14 @@ namespace :deploy do
|
|
124
125
|
if exists?(:mail_sender) && exists?(:mail_receiver)
|
125
126
|
sender, receiver, subject, body = "#{mail_sender}", "#{mail_receiver}", "#{application} deployed", get_git_log()
|
126
127
|
|
127
|
-
Mail.
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
128
|
+
mail = Mail.new
|
129
|
+
mail.charset = "UTF-8"
|
130
|
+
mail.to = receiver
|
131
|
+
mail.from = sender
|
132
|
+
mail.subject = subject
|
133
|
+
mail.body = body
|
134
|
+
|
135
|
+
mail.deliver!
|
133
136
|
end
|
134
137
|
end
|
135
138
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rebuy_deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &6061240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: 2.12.0
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *6061240
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: railsless-deploy
|
30
|
-
requirement: &
|
30
|
+
requirement: &6060480 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ! '>='
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: 1.0.2
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *6060480
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: rake
|
41
|
-
requirement: &
|
41
|
+
requirement: &6059980 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ! '>='
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
version: '0'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *6059980
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: mail
|
52
|
-
requirement: &
|
52
|
+
requirement: &6059400 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ! '>='
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: 2.4.4
|
58
58
|
type: :runtime
|
59
59
|
prerelease: false
|
60
|
-
version_requirements: *
|
60
|
+
version_requirements: *6059400
|
61
61
|
description: This gem offers deployment for all rebuy.de projects
|
62
62
|
email:
|
63
63
|
- m.roetgers@rebuy.de
|