homesteading 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/homesteading/commands/open.rb +13 -2
- data/lib/homesteading/commands/routes.rb +1 -1
- data/lib/homesteading/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8fd71686c3c60264b1640a32ab0a73db5513d91
|
4
|
+
data.tar.gz: 3270877ec43197bea37608f306f38eaf76dd5246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 466e1c4de7e42197e8317921b6ccc4d6547864d1474e0abee0aef87b6617054f579afcd4a7f62637c65a055df1761fff8ba47ea3fffffa930928c69ab9170d5a
|
7
|
+
data.tar.gz: 2e84e1a0fc81841de3f248a629587e500bb5395943f8492882aa14df34a9022517550cecb05491e82c77e112cc059b8d8886b592ee8a674e3a50c0583f781b8e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,8 +7,19 @@ module Homesteading
|
|
7
7
|
def default
|
8
8
|
puts
|
9
9
|
puts "* Opening deployed site in browser..."
|
10
|
-
|
11
|
-
|
10
|
+
|
11
|
+
app_dir = Dir[Dir.pwd + "/homesteading-router*"].first
|
12
|
+
|
13
|
+
if File.exist?(app_dir + "/.git")
|
14
|
+
git_url = Git.open(app_dir).remote("heroku").url
|
15
|
+
unless git_url.nil?
|
16
|
+
heroku_app = git_url.split(":").last.split(".").first
|
17
|
+
url = "http://#{heroku_app}.herokuapp.com"
|
18
|
+
end
|
19
|
+
|
20
|
+
system "open #{url}"
|
21
|
+
end
|
22
|
+
|
12
23
|
puts
|
13
24
|
end
|
14
25
|
end
|
data/lib/homesteading/version.rb
CHANGED