tuesday 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tuesday.rb +14 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 196906735eea820b326932b7dbdb041dc6f8e9ba
4
- data.tar.gz: 6f6e4659d92779cc36954cc2909bd042e74c0a43
3
+ metadata.gz: 080a810ff300ffda3ebd08130250b5cfc72bf4d4
4
+ data.tar.gz: 91323724eae2a5467234afce5dcd5d851657ba7d
5
5
  SHA512:
6
- metadata.gz: cd36b91c2d668057733255f5418455479e2654a4ee8c6a7f4293ebb29945eb590646c735c24dff6589c73aa93a2faea2e9c7a566095cfd55c6ffb50cdc7c5314
7
- data.tar.gz: 29e6082c79c1611faf49559aa9a6241f9858987914b58e625301dca1b45a5a8d4c8e3d8c21735fce0b1b3b685e31839d35a11b9b94a5248ae0d06bb29114e7a0
6
+ metadata.gz: 480e3d20c736f3981d789325182986d0ddcbcdd7e77a7309462d3388797255cd99a6f086edc76abdcb7fe6d8ea0ab3e9d2d1d6adfea8922b40dca66c7035a31c
7
+ data.tar.gz: 1aa78118ec70794c8806e9bdd42f22b4cf704995c3fb60cfc6c4b72065dc0bb3a2fdcfbd44933b6b7c5cdc7121f9e379a2818d08b6dc3b2abb964840b74f918c
@@ -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
- else
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
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuesday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves DeSousa