capobvious 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,7 +50,7 @@ Capistrano::Configuration.instance.load do
50
50
  before "deploy:restart", "auto:run"
51
51
  #after "deploy:setup", "db:create", "nginx:conf", "install:p7zip"
52
52
 
53
-
53
+ #load 'deploy/assets'
54
54
  namespace :auto do
55
55
  task :run do
56
56
  if exists?(:assets) && fetch(:assets) == true
@@ -209,13 +209,17 @@ Capistrano::Configuration.instance.load do
209
209
  end
210
210
 
211
211
  namespace :assets do
212
- desc "Assets precompile"
213
- task :precompile do
212
+ desc "Local Assets precompile"
213
+ task :local_precompile do
214
214
  system("bundle exec rake assets:precompile && cd public && tar czf assets.tar.gz assets/")
215
215
  upload("public/assets.tar.gz","#{current_path}/public/assets.tar.gz")
216
216
  system("rm public/assets.tar.gz && rm -rf tmp/assets && mv public/assets tmp/assets")
217
217
  run("cd #{current_path}/public && rm -rf assets/ && tar xzf assets.tar.gz && rm assets.tar.gz")
218
218
  end
219
+ desc "Assets precompile"
220
+ task :precompile, :roles => :web, :except => { :no_release => true } do
221
+ run("cd #{current_path} && bundle exec rake RAILS_ENV=#{rails_env} assets:precompile")
222
+ end
219
223
  end
220
224
 
221
225
  namespace :nginx do
@@ -1,3 +1,3 @@
1
1
  module Capobvious
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capobvious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-29 00:00:00.000000000 Z
12
+ date: 2012-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70231015892560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,12 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *70231015892560
30
25
  description: Capfile that we use every day
31
26
  email:
32
27
  - donotsendhere@gmail.com
@@ -63,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
58
  version: '0'
64
59
  requirements: []
65
60
  rubyforge_project: capobvious
66
- rubygems_version: 1.8.19
61
+ rubygems_version: 1.8.15
67
62
  signing_key:
68
63
  specification_version: 3
69
64
  summary: Cap recipes