zwr 0.0.6 → 0.0.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/zwr +15 -0
  3. data/zwr.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b930cc254fd6fca6327d3389f30cec778200f979
4
- data.tar.gz: 3ac9a647bf675ed0f830c87a2b1b1f1ecf7cddb2
3
+ metadata.gz: 2a934b697680382250791625ae548e1c0a0a72ec
4
+ data.tar.gz: d7125d6fd3ea07cf53e9cf94f1a854e10d6d1d8c
5
5
  SHA512:
6
- metadata.gz: f8347b774df039f0ed4e39cc9153c4d1eaf82c35be733a7e5a01aca12cb88a36a72e313384f4c748d14fd5528466a17499062bd3ee90c01238653c09c66cb46c
7
- data.tar.gz: ef999fed225092dff4460108f6f64be9600b0a89b56e8ee0628af1633b220033009f8396e4037d4436d297180f8d14087517569572e948a3806f48ce00f72b9b
6
+ metadata.gz: 0ae4150c5a2cc71e39073542fbb2ca9b14a0dadefdd18377cb0ac475bf3b90b8a6fd55f76c12520376b11522b6cf2492bccdf738a406cbb22213005ad5af8d3a
7
+ data.tar.gz: b585bca2cea4512136d581db79cc9a928ef8fb34c67103f38f236d7dc22a4f430429bc677de56138603392f980a1d227d51ae3a5f4dc15ce656e239b794704a7
data/bin/zwr CHANGED
@@ -115,10 +115,25 @@ when 'deploy'
115
115
  `bundle install`
116
116
  `cd /var/rails_apps/#{ARGV[1]} ; RAILS_ENV=production rake db:migrate`
117
117
  `cd /var/rails_apps/#{ARGV[1]} ; RAILS_ENV=production rake db:seed`
118
+ `mkdir /var/rails_apps/#{ARGV[1]}/tmp`
118
119
  `chmod 777 /var/rails_apps/#{ARGV[1]}/tmp -R`
119
120
  `chmod 777 /var/rails_apps/#{ARGV[1]}/log`
120
121
  `chmod 777 /var/rails_apps/#{ARGV[1]}/db`
121
122
  `chmod 777 /var/rails_apps/#{ARGV[1]}/db/production.sqlite3`
123
+ virtual_host_file = (<<-VHFILE.strip_heredoc)
124
+ <VirtualHost *:80>
125
+ # This Rails web app will use Ruby 1.9.3, as installed by RVM
126
+ PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p0/ruby
127
+ ServerName #{ARGV[1]}.zwr.fi
128
+ DocumentRoot /var/rails_apps/#{ARGV[1]}/public
129
+ <Directory /var/rails_apps/#{ARGV[1]}/public>
130
+ AllowOverride all
131
+ Options -MultiViews
132
+ </Directory>
133
+ </VirtualHost>
134
+ VHFILE
135
+ `echo "#{virtual_host_file}" > /etc/httpd/virtual_hosts/#{ARGV[1]}.conf`
136
+ `service httpd reload`
122
137
  end
123
138
  `touch /var/rails_apps/#{ARGV[1]}/tmp/restart.txt`
124
139
  end
data/zwr.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'zwr'
3
- s.version = '0.0.6'
3
+ s.version = '0.0.7'
4
4
  s.date = '2014-10-26'
5
5
  s.summary = "All the Zwr needs"
6
6
  s.description = "A gem in which I jam what I commonly use."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zwr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko