homesteading 0.3.1 → 0.3.2
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/apps.rb +3 -3
- data/lib/homesteading/commands/deploy.rb +7 -7
- data/lib/homesteading/commands/server.rb +4 -4
- 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: b71027ca5b551403273eab5b0647eb1f739272ba
|
4
|
+
data.tar.gz: 701b059a378bde2360ff8f9e37921c30aa9a94a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7ce8c691fc91947f6bde99bb41467075cea8ae70a144d01c4ddfee9383944fa9074da72550bfc1369d919e295d3a7566b7bdeb09db529303e9c91a361bbb0d7
|
7
|
+
data.tar.gz: 65e0c66c4d0fec6306e90f5eb302e53b5e6c6a4d7f573285c83612c677fc32cb82d5a1a7904cbbd013e54737322d04e6da2548a6baa2560e185cb23e82bc59df
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -11,9 +11,9 @@ module Homesteading
|
|
11
11
|
publisher_apps = []
|
12
12
|
nonpublisher_apps = []
|
13
13
|
|
14
|
-
Dir.glob("#{Dir.pwd}/homesteading-*/").each do |
|
15
|
-
app =
|
16
|
-
app_file_path =
|
14
|
+
Dir.glob("#{Dir.pwd}/homesteading-*/").each do |app_dir|
|
15
|
+
app = app_dir.split("/").last.sub(/homesteading-/, "").downcase
|
16
|
+
app_file_path = app_dir + "app.json"
|
17
17
|
|
18
18
|
app_keywords = []
|
19
19
|
if File.exist?(app_file_path)
|
@@ -14,15 +14,15 @@ module Homesteading
|
|
14
14
|
puts
|
15
15
|
options = parse_options
|
16
16
|
|
17
|
-
Dir.glob("#{Dir.pwd}/homesteading-#{options[:app]}*/").each do |
|
18
|
-
app =
|
19
|
-
app_file_path =
|
17
|
+
Dir.glob("#{Dir.pwd}/homesteading-#{options[:app]}*/").each do |app_dir|
|
18
|
+
app = app_dir.split("/").last.sub(/homesteading-/, "").downcase
|
19
|
+
app_file_path = app_dir + "app.json"
|
20
20
|
|
21
|
-
if File.exist?(app_file_path) && File.exist?(
|
21
|
+
if File.exist?(app_file_path) && File.exist?(app_dir + ".git")
|
22
22
|
if options[:verbose]
|
23
|
-
g = Git.open(
|
23
|
+
g = Git.open(app_dir, :log => Logger.new(STDOUT))
|
24
24
|
else
|
25
|
-
g = Git.open(
|
25
|
+
g = Git.open(app_dir)
|
26
26
|
end
|
27
27
|
|
28
28
|
heroku_remote = g.remotes.map { |r| r if r.name == "heroku" }
|
@@ -41,7 +41,7 @@ module Homesteading
|
|
41
41
|
puts "* ...done"
|
42
42
|
|
43
43
|
# run initial app remote setup
|
44
|
-
Homesteading::Command.create("init").default(nil, server: :heroku, app:
|
44
|
+
Homesteading::Command.create("init").default(nil, server: :heroku, app: app)
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -41,15 +41,15 @@ module Homesteading
|
|
41
41
|
routes = []
|
42
42
|
|
43
43
|
app_port = 3000
|
44
|
-
Dir.glob("#{Dir.pwd}/homesteading-*/").each_with_index do |
|
45
|
-
app_file_path =
|
44
|
+
Dir.glob("#{Dir.pwd}/homesteading-*/").each_with_index do |app_dir, index|
|
45
|
+
app_file_path = app_dir + "app.json"
|
46
46
|
|
47
47
|
if File.exist?(app_file_path)
|
48
48
|
app_file = JSON.parse(File.read(app_file_path))
|
49
49
|
app_route = app_file["routes"]
|
50
50
|
|
51
51
|
if app_route
|
52
|
-
app_name =
|
52
|
+
app_name = app_dir.split("/").last
|
53
53
|
|
54
54
|
app_path = app_route["path"]
|
55
55
|
if app_name =~ /feed/
|
@@ -66,7 +66,7 @@ module Homesteading
|
|
66
66
|
# skipping assets and router
|
67
67
|
else
|
68
68
|
puts "* Starting on port #{app_port} : #{app_name.sub(/homesteading-/, "")}"
|
69
|
-
servers << IO.popen("cd #{
|
69
|
+
servers << IO.popen("cd #{app_dir} && bin/rails server -d --port #{app_port}", "w")
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
data/lib/homesteading/version.rb
CHANGED