CiHelper 2.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ci_helper/formatter/common.rb +51 -0
- data/lib/ci_helper/user_command_line_interface.rb +5 -1
- data/lib/ci_helper/version.rb +1 -1
- data/lib/ci_helper.rb +0 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aacf21fd288b3f175986474b464199f1f166763c
|
4
|
+
data.tar.gz: 6d4ccfec41b48e53dbf54daa5367a61879e70cf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8835873dfa3e81049ec90e86d35dda7fe301f0fe1c3d079be31f965ae563967882e07a5b2c7f03b85bc5463cdfe6e94d3e64cdddba46478158240bdb0ebcbc87
|
7
|
+
data.tar.gz: 4417f5b08c7969e491b73ecc3e0abfc56c2cc8059aa7894d9045393c6e9472ef6b53b535e91d631f5db40e9beaf367523952e657e92cf015d4fca541593a7a02
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module CiHelper
|
2
|
+
module Formatter
|
3
|
+
module Common
|
4
|
+
def budddha
|
5
|
+
#
|
6
|
+
# [
|
7
|
+
# " _oo8oo_",
|
8
|
+
# " o8888888o",
|
9
|
+
# " 88' . '88",
|
10
|
+
# " (| -_- |)",
|
11
|
+
# " 0\ = /0",
|
12
|
+
# " ___/'==='\___ where is my mom mom ? ",
|
13
|
+
# " ' \\| | '.",
|
14
|
+
# " / \\||| : ||| \"",
|
15
|
+
# " / _||||| -:- |||||_ \"",
|
16
|
+
# " | | \\\ - / | | "",
|
17
|
+
# " | \_| ''\---/ '' |_/ |",
|
18
|
+
# " \ .-\__ '-' __/-. /"",
|
19
|
+
# ___'. .' /--.--\ '. .'___
|
20
|
+
# ."" '< '.___\_<|>_/___.' >' "".
|
21
|
+
# | | : `- \`.:`\ _ /`:.`/ -` : | |
|
22
|
+
# \ \ `-. \_ __\ /__ _/ .-` / /
|
23
|
+
# =====`-.____`.___ \_____/ ___.`____.-`=====
|
24
|
+
# `=---=`
|
25
|
+
#
|
26
|
+
#
|
27
|
+
#
|
28
|
+
end
|
29
|
+
|
30
|
+
def print_horse_format
|
31
|
+
puts horse_formatter.join("\n")
|
32
|
+
end
|
33
|
+
|
34
|
+
def horse_formatter
|
35
|
+
[
|
36
|
+
" where is my mommom ?",
|
37
|
+
"\\",
|
38
|
+
"\\ ^___^",
|
39
|
+
" \\ (O O) \\______________",
|
40
|
+
" (___) \\ ) \\/\\",
|
41
|
+
" || -----------w | ",
|
42
|
+
" || | |",
|
43
|
+
" || | \\",
|
44
|
+
" ######### ########"
|
45
|
+
]
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
@@ -1,6 +1,7 @@
|
|
1
|
+
require 'ci_helper/formatter/common'
|
1
2
|
module CiHelper
|
2
3
|
class UserCommandLineInterface
|
3
|
-
|
4
|
+
include CiHelper::Formatter::Common
|
4
5
|
|
5
6
|
# TODO : need to move to bitbucket related setting to let user set
|
6
7
|
REVIEWERS = ['anna_ho_2014', 'cherylyu_jcm',
|
@@ -132,7 +133,10 @@ module CiHelper
|
|
132
133
|
reviewer = []
|
133
134
|
choosen_key.each do |value|
|
134
135
|
if value.to_i == CiHelper::DANGEROUS
|
136
|
+
|
135
137
|
print_ngyan_cat
|
138
|
+
puts "\n"
|
139
|
+
print_horse_format
|
136
140
|
fail Exceptions::SettingError, 'Please dont choose Ciao Bao its dangerous !!!!!!!'
|
137
141
|
end
|
138
142
|
|
data/lib/ci_helper/version.rb
CHANGED
data/lib/ci_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: CiHelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alan Yu
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- lib/ci_helper/cli.rb
|
69
69
|
- lib/ci_helper/constants.rb
|
70
70
|
- lib/ci_helper/exceptions.rb
|
71
|
+
- lib/ci_helper/formatter/common.rb
|
71
72
|
- lib/ci_helper/functions.rb
|
72
73
|
- lib/ci_helper/functions/base.rb
|
73
74
|
- lib/ci_helper/functions/jenkin.rb
|