mina-teams 0.1.0 → 0.2.0
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 +4 -4
- data/lib/mina/teams/tasks.rb +5 -5
- data/lib/mina/teams/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e665a96f25ba042587527fd9dc805788952958859332174444d7ac264bc0d492
|
4
|
+
data.tar.gz: a6f9323e39d1137900e77e0173f144f5146bdc6a5b960884d1c474400a50f185
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d54a0d64abb7848b040e09a26c9004832b82cccd26654e48038be4da4bf94a4c68ab5fc714e3ba036fb084248b75f0133497f96e5025df4009c57ac0be133bce
|
7
|
+
data.tar.gz: 9e03fed7686db681a3f3c97652a356b344eaf434cdc61b2826528ba32aa297fdd3b3015925366546539151f52dd9360bed2ff87ec7079331e00dd9a1c92ac76d
|
data/lib/mina/teams/tasks.rb
CHANGED
@@ -9,7 +9,7 @@ namespace :teams do
|
|
9
9
|
set :environment, -> { ENV['to'] }
|
10
10
|
|
11
11
|
task :starting do
|
12
|
-
notification = "#{fetch(:author).call} is deploying branch #{branch_name} to #{fetch(:environment).call}"
|
12
|
+
notification = "#{fetch(:author).call} is deploying branch #{branch_name} to #{fetch(:environment).call} 🚀"
|
13
13
|
post_teams_channel(notification)
|
14
14
|
set(:start_time, Time.now)
|
15
15
|
end
|
@@ -19,12 +19,12 @@ namespace :teams do
|
|
19
19
|
start_time = fetch(:start_time)
|
20
20
|
elapsed = end_time.to_i - start_time.to_i
|
21
21
|
|
22
|
-
notification = "#{fetch(:author).call} successfully deployed branch #{branch_name} in #{elapsed} seconds."
|
22
|
+
notification = "🏁 #{fetch(:author).call} successfully deployed branch #{branch_name} in #{elapsed} seconds."
|
23
23
|
post_teams_channel(notification)
|
24
24
|
end
|
25
25
|
|
26
26
|
task :starting_restart do
|
27
|
-
notification = "#{fetch(:author).call} is restarting #{fetch(:environment).call} servers"
|
27
|
+
notification = "#{fetch(:author).call} is restarting #{fetch(:environment).call} servers ▶️"
|
28
28
|
post_teams_channel(notification)
|
29
29
|
set(:start_time, Time.now)
|
30
30
|
end
|
@@ -34,7 +34,7 @@ namespace :teams do
|
|
34
34
|
start_time = fetch(:start_time)
|
35
35
|
elapsed = end_time.to_i - start_time.to_i
|
36
36
|
|
37
|
-
notification = "#{fetch(:author).call} successfully restarted #{fetch(:environment).call} servers in #{elapsed} seconds."
|
37
|
+
notification = "#{fetch(:author).call} successfully restarted #{fetch(:environment).call} servers in #{elapsed} seconds. ✅"
|
38
38
|
post_teams_channel(notification)
|
39
39
|
end
|
40
40
|
|
@@ -48,7 +48,7 @@ namespace :teams do
|
|
48
48
|
http.use_ssl = true
|
49
49
|
|
50
50
|
payload = {
|
51
|
-
text: message
|
51
|
+
text: "<pre>#{message}<\/pre>"
|
52
52
|
}
|
53
53
|
headers = {'Content-Type': 'application/json'}
|
54
54
|
|
data/lib/mina/teams/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-teams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Coutinho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|