zwr 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/zwr +11 -11
  3. data/lib/tasks/zwr.rake +1 -0
  4. data/zwr.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8dd20be05ff8e4ea65c7e9036d810dd22984e3d
4
- data.tar.gz: a12eb668f77427eebcfb8f83e1b514f77e8c305b
3
+ metadata.gz: b930cc254fd6fca6327d3389f30cec778200f979
4
+ data.tar.gz: 3ac9a647bf675ed0f830c87a2b1b1f1ecf7cddb2
5
5
  SHA512:
6
- metadata.gz: 9095ab2cf0b4adf4b2f6f2f3ccb6459eb1d63acee1f9dfa646787e16b242cba818a469c07fd8f3072ffbcb0873ab45b08294a19b5816b85f4461490339dbfc39
7
- data.tar.gz: 87278c0fbccb3abf48a1d3ea1fbb2e6a27ecb8cd4ce7963258ee17d2d758e09d73eca3f364d76b3c19c4606e159c813e9bb8416509ac3631bbea70b58d20b370
6
+ metadata.gz: f8347b774df039f0ed4e39cc9153c4d1eaf82c35be733a7e5a01aca12cb88a36a72e313384f4c748d14fd5528466a17499062bd3ee90c01238653c09c66cb46c
7
+ data.tar.gz: ef999fed225092dff4460108f6f64be9600b0a89b56e8ee0628af1633b220033009f8396e4037d4436d297180f8d14087517569572e948a3806f48ce00f72b9b
data/bin/zwr CHANGED
@@ -104,23 +104,23 @@ when 'deploy'
104
104
  if File.directory? "/var/rails_apps/#{ARGV[1]}"
105
105
  putsv "Updating existing #{ARGV[1]}"
106
106
  Dir.chdir "/var/rails_apps/#{ARGV[1]}"
107
- `git fetch`
108
- `git checkout production`
109
- `git reset --hard origin/production`
107
+ `cd /var/rails_apps/#{ARGV[1]} ; git fetch`
108
+ `cd /var/rails_apps/#{ARGV[1]} ; git checkout production`
109
+ `cd /var/rails_apps/#{ARGV[1]} ; git reset --hard origin/production`
110
110
  else
111
111
  Dir.chdir "/var/rails_apps"
112
112
  putsv "Deploying new project #{ARGV[1]}"
113
113
  `git clone git@github.com:zmilojko/tst.git`
114
114
  Dir.chdir "/var/rails_apps/#{ARGV[1]}"
115
- `RAILS_ENV=production rake db:migrate`
116
- `RAILS_ENV=production rake db:seed`
117
- `RAILS_ENV=production rake db:seed`
118
- `chmod 777 tmp -R`
119
- `chmod 777 log`
120
- `chmod 777 db`
121
- `chmod 777 db/production.sqlite3`
115
+ `bundle install`
116
+ `cd /var/rails_apps/#{ARGV[1]} ; RAILS_ENV=production rake db:migrate`
117
+ `cd /var/rails_apps/#{ARGV[1]} ; RAILS_ENV=production rake db:seed`
118
+ `chmod 777 /var/rails_apps/#{ARGV[1]}/tmp -R`
119
+ `chmod 777 /var/rails_apps/#{ARGV[1]}/log`
120
+ `chmod 777 /var/rails_apps/#{ARGV[1]}/db`
121
+ `chmod 777 /var/rails_apps/#{ARGV[1]}/db/production.sqlite3`
122
122
  end
123
- `touch tmp/restart.txt`
123
+ `touch /var/rails_apps/#{ARGV[1]}/tmp/restart.txt`
124
124
  end
125
125
  else
126
126
  show_usage
data/lib/tasks/zwr.rake CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'active_support'
2
2
  require 'active_support/core_ext'
3
+ require 'rake'
3
4
 
4
5
  namespace :zwr do
5
6
  ASSETS_FOLDER = File.realpath( File.dirname( __FILE__ ) + '/../../assets')
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.5'
3
+ s.version = '0.0.6'
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko