homesteading 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 654866e0af2b1321b2deb7f2476503cd21a3ad50
4
- data.tar.gz: 9c490dfec34c1a5dcf5db2c805cd3a6e70ab6d68
3
+ metadata.gz: 277b7f3921d0118782258f32e4a9ce918aa5565a
4
+ data.tar.gz: cfa2f93041be05aa004508d672753ad62acdecf9
5
5
  SHA512:
6
- metadata.gz: 0704fcfc27e4bb719029a7d37c339f9ef3c31b67971aa477e24db50710041c784bceed17922eee45842600e658e38b0d8b0cba5486f719df1b2feb106e74cf08
7
- data.tar.gz: 1acb993082ae4b4dce4c9e1d375de65c2088401fb3809a214ae7aee21a3b964100009f56dbc72bf867190f22edb477c847653a083cd0cbdb00f48d7cf1a15aa1
6
+ metadata.gz: e3038a092d65842feb0a54162d20acc689ffeb98fd66923361427b4a4fbe728499aabf20e499148fb93535f81ba43e3c14544b5af1f409414decaa62609c6da1
7
+ data.tar.gz: 108087a77e1b4c42c20f090bd5cb5398cf88ce80e98df72a03b52393aab32e72ee22d54cf53b0644060c7ce39dd3d118a590a1bd6d004709a1ac5799bd1cc6be
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- homesteading (0.4.1)
4
+ homesteading (0.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -12,7 +12,7 @@ See the [/help](https://github.com/homesteading/homesteading/tree/master/help) d
12
12
 
13
13
  ## Current Version
14
14
 
15
- 0.4.1
15
+ 0.5.0
16
16
 
17
17
 
18
18
  ## Code Status
@@ -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 (set, push)
10
+ * routes : manage remote routes (push)
10
11
  * server : run constellation of apps (start, stop)
11
12
 
12
13
  Additional help topics:
@@ -0,0 +1,9 @@
1
+ Usage: homesteading open
2
+
3
+ open deploy site in a browser
4
+
5
+ Example:
6
+
7
+ $ homesteading open
8
+
9
+ * Opening deployed site in browser...
@@ -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
- private
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"]["path"]
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[route] = "#{heroku_app}.herokuapp.com"
71
+ routes[path] = "#{heroku_app}.herokuapp.com"
67
72
  end
68
73
  end
69
74
  end
@@ -1,4 +1,4 @@
1
1
  module Homesteading
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.0"
3
3
  CODENAME = "The Rooftop Series"
4
4
  end
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.1
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-29 00:00:00.000000000 Z
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