bard 0.26.1 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard.rb +5 -9
- data/lib/bard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0449828cac43b6aae58d24fbb842ab893a4766a2
|
4
|
+
data.tar.gz: 70c642d17419207c2860cac87573c89bfd09e030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73d9a72c1662146812937ae1c511c1d48b70a628549584016bc1d1f52b19f48dc3d6129475f037aeed3d6f9a001b1dc8417a42354d4c1ba846ca265036a38322
|
7
|
+
data.tar.gz: eeabd34d26ca2f30889e069591f776356567dd40b9585f73543f1416fd139d600f273606a506c9302e1e941f975e66cee20b593f2e1b3ada0dc0e80d935c34d3
|
data/lib/bard.rb
CHANGED
@@ -33,14 +33,14 @@ class Bard::CLI < Thor
|
|
33
33
|
puts green("Stage Succeeded")
|
34
34
|
end
|
35
35
|
|
36
|
-
method_options %w( verbose -v ) => :boolean, %w(
|
36
|
+
method_options %w( verbose -v ) => :boolean, %w( skip-ci ) => :boolean
|
37
37
|
desc "deploy", "checks that branch is a ff with master, checks with ci, and then merges into master and deploys to production, and deletes branch."
|
38
38
|
def deploy
|
39
39
|
branch = Git.current_branch
|
40
40
|
|
41
41
|
if branch == "master"
|
42
42
|
run_crucial "git push origin master:master"
|
43
|
-
invoke :ci
|
43
|
+
invoke :ci unless options.skip_ci?
|
44
44
|
|
45
45
|
else
|
46
46
|
run_crucial "git fetch origin master:master"
|
@@ -51,7 +51,7 @@ class Bard::CLI < Thor
|
|
51
51
|
|
52
52
|
run_crucial "git push -f origin #{branch}:#{branch}"
|
53
53
|
|
54
|
-
invoke :ci
|
54
|
+
invoke :ci unless options.skip_ci?
|
55
55
|
|
56
56
|
run_crucial "git push origin #{branch}:master"
|
57
57
|
run_crucial "git fetch origin master:master"
|
@@ -109,12 +109,8 @@ class Bard::CLI < Thor
|
|
109
109
|
|
110
110
|
else
|
111
111
|
puts red("No CI found for #{project_name}!")
|
112
|
-
if
|
113
|
-
|
114
|
-
else
|
115
|
-
puts "Re-run with --force to bypass CI, if you absolutely must, and know what you're doing."
|
116
|
-
exit 1
|
117
|
-
end
|
112
|
+
puts "Re-run with --skip-ci to bypass CI, if you absolutely must, and know what you're doing."
|
113
|
+
exit 1
|
118
114
|
end
|
119
115
|
end
|
120
116
|
|
data/lib/bard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|