bard 0.43.2 → 0.44.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 +7 -0
  3. data/lib/bard/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1d5d1d2e6e5f6d0773fa26f60fb920572df272d623a6371eeeb831853dec153
4
- data.tar.gz: e2e30089f78b9ff60cc5467c17756d11b7f55d25275dc00517b83c15afa86f28
3
+ metadata.gz: 6ae411fccf104a6b049a476bfcc662b26d258687a304aa6a4115078a37aafa3f
4
+ data.tar.gz: ef5e3967d6569b1fb9c58b55ccc668a98fbda97b3f626cd31c3897106ecb04c2
5
5
  SHA512:
6
- metadata.gz: ddda49134dab1cb9f5dd0351e44f597223a21cba04b2b1af2a4cd49f820139a25c6689646295cddc3a15a1682da5ddc04ea52d338decb411f1a0da021f5830be
7
- data.tar.gz: 67d6b0b1d6b55ed39acdbdd19176eb96ea6b58aaffa68a2858f50f443c82ca23eba62269881af321720099b8e0281da990a2ff49847fa4a20da26d9efa35f84b
6
+ metadata.gz: 59a9e9b54fa1669571c4e61cdcb8ff12e19b511ab12a31ac79a9481cab6964ec53730daa789f685053ce658ba340efe5bfb7f1b031114436563a12c13a3d4ff1
7
+ data.tar.gz: 11036591830610869ab72ba374f47bd5d95b4de1f991366636dbc137fd394f75494c5a8ae192f7a089fddfd7e7b7f1756b2e1da6cc6f2ab3ada362ac93747130
@@ -126,6 +126,13 @@ class Bard::CLI < Thor
126
126
  end
127
127
  end
128
128
 
129
+ desc "open [SERVER=production]", "opens the url in the web browser."
130
+ def open server=nil
131
+ server ||= @config.servers.key?(:production) ? :production : :staging
132
+ server = @config.servers[server.to_sym]
133
+ exec "xdg-open #{server.default_ping}"
134
+ end
135
+
129
136
  desc "hurt", "reruns a command until it fails"
130
137
  def hurt *args
131
138
  1.upto(Float::INFINITY) do |count|
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.43.2"
2
+ VERSION = "0.44.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.2
4
+ version: 0.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel