homesteading 0.4.1 → 0.5.0
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/help/README.md +2 -1
- data/help/open.md +9 -0
- data/lib/homesteading/commands/open.rb +15 -0
- data/lib/homesteading/commands/routes.rb +8 -3
- data/lib/homesteading/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 277b7f3921d0118782258f32e4a9ce918aa5565a
|
4
|
+
data.tar.gz: cfa2f93041be05aa004508d672753ad62acdecf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3038a092d65842feb0a54162d20acc689ffeb98fd66923361427b4a4fbe728499aabf20e499148fb93535f81ba43e3c14544b5af1f409414decaa62609c6da1
|
7
|
+
data.tar.gz: 108087a77e1b4c42c20f090bd5cb5398cf88ce80e98df72a03b52393aab32e72ee22d54cf53b0644060c7ce39dd3d118a590a1bd6d004709a1ac5799bd1cc6be
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/help/README.md
CHANGED
@@ -5,8 +5,9 @@ Primary help topics, type "homesteading help TOPIC" for more details:
|
|
5
5
|
* new : create a new constellation of homesteading apps
|
6
6
|
* apps : manage constellation of apps (create, destroy, list, update)
|
7
7
|
* deploy : deploy apps to remote host (heroku, vektra, etc)
|
8
|
+
* open : open deploy site in a browser
|
8
9
|
* run : run one-off commands (console, rake)
|
9
|
-
* routes : manage remote routes (
|
10
|
+
* routes : manage remote routes (push)
|
10
11
|
* server : run constellation of apps (start, stop)
|
11
12
|
|
12
13
|
Additional help topics:
|
data/help/open.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require "homesteading/command"
|
2
|
+
|
3
|
+
module Homesteading
|
4
|
+
class Open < Command
|
5
|
+
register "open", "o"
|
6
|
+
|
7
|
+
def default
|
8
|
+
puts
|
9
|
+
puts "* Opening deployed site in browser..."
|
10
|
+
url = "http://" + Homesteading::Routes.new.get_routes[""]
|
11
|
+
system "open #{url}"
|
12
|
+
puts
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -46,7 +46,7 @@ module Homesteading
|
|
46
46
|
puts
|
47
47
|
end
|
48
48
|
|
49
|
-
|
49
|
+
|
50
50
|
def get_routes
|
51
51
|
routes = {}
|
52
52
|
|
@@ -56,14 +56,19 @@ module Homesteading
|
|
56
56
|
|
57
57
|
if File.exist?(app_file_path)
|
58
58
|
app_file = JSON.parse(File.read(app_file_path))
|
59
|
-
route = app_file["routes"]
|
59
|
+
route = app_file["routes"]
|
60
|
+
if route.nil?
|
61
|
+
next
|
62
|
+
else
|
63
|
+
path = route["path"]
|
64
|
+
end
|
60
65
|
end
|
61
66
|
|
62
67
|
if File.exist?(app_dir + ".git")
|
63
68
|
git_url = Git.open(app_dir).remote("heroku").url
|
64
69
|
unless git_url.nil?
|
65
70
|
heroku_app = git_url.split(":").last.split(".").first
|
66
|
-
routes[
|
71
|
+
routes[path] = "#{heroku_app}.herokuapp.com"
|
67
72
|
end
|
68
73
|
end
|
69
74
|
end
|
data/lib/homesteading/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homesteading
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The Homesteading CLI is used to create, update and deploy a constellation
|
14
14
|
of homesteading apps that together make up a website powered by Homesteading.
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- help/deploy.md
|
42
42
|
- help/init.md
|
43
43
|
- help/new.md
|
44
|
+
- help/open.md
|
44
45
|
- help/routes-push.md
|
45
46
|
- help/routes.md
|
46
47
|
- help/run.md
|
@@ -57,6 +58,7 @@ files:
|
|
57
58
|
- lib/homesteading/commands/help.rb
|
58
59
|
- lib/homesteading/commands/init.rb
|
59
60
|
- lib/homesteading/commands/new.rb
|
61
|
+
- lib/homesteading/commands/open.rb
|
60
62
|
- lib/homesteading/commands/routes.rb
|
61
63
|
- lib/homesteading/commands/run.rb
|
62
64
|
- lib/homesteading/commands/server.rb
|