hu 2.0.15 → 2.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hu/deploy.rb +11 -1
- data/lib/hu/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: 4a06118dd1c985f7cfa93598b815cd1509697b3c24b9536424dc36ba143c2f74
|
4
|
+
data.tar.gz: 799bc4c5bfc3da063fb28d42bac7839c61c26ecd356218517862a7afec0f1b43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 790793b212a4580734d67224822c576d91584e9f8005dd3b1d076809c0a68c920798328c472a750935f3a2b7315d0baa189c4eddfffd26ed718586481b6fdbbf
|
7
|
+
data.tar.gz: c24241cdb66bd259daefa0ad543cfd3749327997d2a53bab3cfaaa596bbc14d69a4478982f850c341756efa34723ae00dc0b9a8d80265b8fa2d2e58910b8b1ce
|
data/lib/hu/deploy.rb
CHANGED
@@ -118,6 +118,16 @@ module Hu
|
|
118
118
|
|
119
119
|
Dir.chdir(@git.workdir)
|
120
120
|
|
121
|
+
unless branch_exists?("master")
|
122
|
+
print TTY::Cursor.clear_line + TTY::Cursor.show
|
123
|
+
puts
|
124
|
+
puts "ERROR: No 'master' branch.".color(:red)
|
125
|
+
puts
|
126
|
+
puts " Please run 'git checkout master'"
|
127
|
+
puts
|
128
|
+
exit 1
|
129
|
+
end
|
130
|
+
|
121
131
|
if @git.config['branch.master.remote'] != 'origin'
|
122
132
|
print TTY::Cursor.clear_line + TTY::Cursor.show
|
123
133
|
puts
|
@@ -593,7 +603,7 @@ EOF
|
|
593
603
|
puts msg.color(:red)
|
594
604
|
puts <<EOF
|
595
605
|
|
596
|
-
1. Go to \e
|
606
|
+
1. Go to \e[1mhttps://github.com/settings/tokens\e[0m
|
597
607
|
|
598
608
|
2. Click on [Generate new token]
|
599
609
|
|
data/lib/hu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- moe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|