bard 0.43.2 → 0.44.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 +7 -0
- data/lib/bard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ae411fccf104a6b049a476bfcc662b26d258687a304aa6a4115078a37aafa3f
|
4
|
+
data.tar.gz: ef5e3967d6569b1fb9c58b55ccc668a98fbda97b3f626cd31c3897106ecb04c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59a9e9b54fa1669571c4e61cdcb8ff12e19b511ab12a31ac79a9481cab6964ec53730daa789f685053ce658ba340efe5bfb7f1b031114436563a12c13a3d4ff1
|
7
|
+
data.tar.gz: 11036591830610869ab72ba374f47bd5d95b4de1f991366636dbc137fd394f75494c5a8ae192f7a089fddfd7e7b7f1756b2e1da6cc6f2ab3ada362ac93747130
|
data/lib/bard.rb
CHANGED
@@ -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|
|
data/lib/bard/version.rb
CHANGED