bard 0.26.1 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bard.rb +5 -9
  3. data/lib/bard/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3e9f1b9f8ffc6d8763036774715871bcc92d456
4
- data.tar.gz: 39277a8f8c68c6bf3b5efccd2ee8a2243d549bf9
3
+ metadata.gz: 0449828cac43b6aae58d24fbb842ab893a4766a2
4
+ data.tar.gz: 70c642d17419207c2860cac87573c89bfd09e030
5
5
  SHA512:
6
- metadata.gz: 47d0253acd173f36a2c315db48dd103ce7bfd4b60f57a9136bfb182230dcb06e9e6ccfb8b77f5ebd447c695e6f7dc4e4f901d65487e9465c1f09ab96858511e8
7
- data.tar.gz: fcb38b82de00183b9fb24245dea256f8550d6e7568014fab4208d400d2e2a983e74f804b536e7d1b99dc62f212a7eafe0b7e85a48ebbd50d6e4b317f371d02b5
6
+ metadata.gz: 73d9a72c1662146812937ae1c511c1d48b70a628549584016bc1d1f52b19f48dc3d6129475f037aeed3d6f9a001b1dc8417a42354d4c1ba846ca265036a38322
7
+ data.tar.gz: eeabd34d26ca2f30889e069591f776356567dd40b9585f73543f1416fd139d600f273606a506c9302e1e941f975e66cee20b593f2e1b3ada0dc0e80d935c34d3
@@ -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( force ) => :boolean
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 options.force?
113
- puts "Forcing deploy, anyways. I hope you know what you're doing!"
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
 
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.26.1"
2
+ VERSION = "0.27.0"
3
3
  end
4
4
 
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.26.1
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: 2017-07-29 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor