tuesday 0.0.4 → 0.0.5
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 +4 -4
- data/lib/tuesday.rb +14 -2
- 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: 080a810ff300ffda3ebd08130250b5cfc72bf4d4
|
4
|
+
data.tar.gz: 91323724eae2a5467234afce5dcd5d851657ba7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 480e3d20c736f3981d789325182986d0ddcbcdd7e77a7309462d3388797255cd99a6f086edc76abdcb7fe6d8ea0ab3e9d2d1d6adfea8922b40dca66c7035a31c
|
7
|
+
data.tar.gz: 1aa78118ec70794c8806e9bdd42f22b4cf704995c3fb60cfc6c4b72065dc0bb3a2fdcfbd44933b6b7c5cdc7121f9e379a2818d08b6dc3b2abb964840b74f918c
|
data/lib/tuesday.rb
CHANGED
@@ -15,7 +15,7 @@ class Tuesday
|
|
15
15
|
end
|
16
16
|
|
17
17
|
kitchen.each do |key,value|
|
18
|
-
if value[:rails_app]
|
18
|
+
if value[:rails_app].downcase == "true"
|
19
19
|
puts `rm "#{value[:pwd]}"/config/unicorn.rb`
|
20
20
|
else
|
21
21
|
puts `rm "#{value[:pwd]}"/unicorn.rb`
|
@@ -29,7 +29,17 @@ class Tuesday
|
|
29
29
|
File.write(kitchen_path, "")
|
30
30
|
File.write("/etc/nginx/conf.d/default.conf","")
|
31
31
|
puts `service nginx restart`
|
32
|
-
|
32
|
+
elsif Dir["*.js"] != []
|
33
|
+
puts "This is a JS app"
|
34
|
+
#Load Menufile
|
35
|
+
|
36
|
+
puts "Quite a good selection sir"
|
37
|
+
#build /etc/init/app_name.conf
|
38
|
+
#load kitchen
|
39
|
+
puts "Preparing the Kitchen"
|
40
|
+
#rebuild nginx and add new app
|
41
|
+
#restart app_name and nginx
|
42
|
+
else
|
33
43
|
#puts "#praisecatgod"
|
34
44
|
settings = {}
|
35
45
|
|
@@ -214,3 +224,5 @@ file = File.open(kitchen_path)
|
|
214
224
|
|
215
225
|
`cp "#{kitchen_path}" /usr/local/bin/kitchen`
|
216
226
|
`chmod a+x /usr/local/bin/kitchen`
|
227
|
+
|
228
|
+
|