chicken_soup 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ ######################################################################
2
+ # ASSET PIPELINE DEFAULTS #
3
+ ######################################################################
4
+ Capistrano::Configuration.instance(:must_exist).load do
5
+ namespace :capabilities do
6
+ namespace :variable do
7
+ namespace :check do
8
+ desc <<-DESC
9
+ [internal] Checks to see if all necessary asset pipeline capabilities variables have been set up.
10
+ DESC
11
+ task :asset_pipeline do
12
+ required_variables = [
13
+ :assets_path
14
+ ]
15
+
16
+ verify_variables(required_variables)
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,13 @@
1
+ ######################################################################
2
+ # ASSET PIPELINE DEFAULTS #
3
+ ######################################################################
4
+ Capistrano::Configuration.instance(:must_exist).load do
5
+ namespace :capabilities do
6
+ namespace :defaults do
7
+ desc "[internal] Sets intelligent defaults for the asset pipeline."
8
+ task :asset_pipeline do
9
+ _cset :assets_path, "#{shared_path}/assets"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,36 @@
1
+ ######################################################################
2
+ # ASSET PIPELINE DEFAULTS #
3
+ ######################################################################
4
+ Capistrano::Configuration.instance(:must_exist).load do
5
+ before 'deploy:cleanup', 'assets:update'
6
+
7
+ namespace :assets do
8
+ desc 'Recompile all of the assets in the project.'
9
+ task :precompile, :roles => :app do
10
+ asset_pipeline.precompile
11
+ end
12
+
13
+ desc 'Removes all of the assets currently compiled.'
14
+ task :clean, :roles => :app do
15
+ run "rm -rf #{assets_path}/*"
16
+ end
17
+
18
+ desc 'Symlinks the shared asset directory to the current release'
19
+ task :symlink, :roles => :app do
20
+ run "ln -nsf #{assets_path} #{latest_release}/public/assets"
21
+ end
22
+
23
+ desc 'Remove and recompile all of the assets in the project.'
24
+ task :update, :roles => :app do
25
+ assets.symlink
26
+ assets.clean
27
+ assets.precompile
28
+ end
29
+ end
30
+
31
+ namespace :asset_pipeline do
32
+ task :precompile, :roles => :app do
33
+ run "cd #{current_path} && #{rake} RAILS_GROUPS=assets assets:precompile"
34
+ end
35
+ end
36
+ end
@@ -92,6 +92,7 @@ Capistrano::Configuration.instance(:must_exist).load do
92
92
  task :default, :roles => :db, :only => {:primary => true} do
93
93
  db.backup.default
94
94
  db.pull.latest
95
+ db.scrub
95
96
  end
96
97
 
97
98
  desc <<-DESC
@@ -143,5 +144,16 @@ Capistrano::Configuration.instance(:must_exist).load do
143
144
  db.backup
144
145
  run "cd #{current_path} && #{rake} db:seed"
145
146
  end
147
+
148
+ desc <<-DESC
149
+ Calls the rake task `db:scrub` locally.
150
+
151
+ Usually, this will be run in conjunction with `db:pull` but may also be run
152
+ in a standalone manner.
153
+ DESC
154
+ task :scrub, :roles => :db do
155
+ puts 'Running `rake db:scrub` locally'
156
+ `#{local_rake} db:scrub`
157
+ end
146
158
  end
147
159
  end
@@ -1,3 +1,3 @@
1
1
  module ChickenSoup
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chicken_soup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-12-06 00:00:00.000000000 Z
13
+ date: 2012-01-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano
17
- requirement: &2152272760 !ruby/object:Gem::Requirement
17
+ requirement: &2156055480 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.9.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2152272760
25
+ version_requirements: *2156055480
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: mail
28
- requirement: &2152272220 !ruby/object:Gem::Requirement
28
+ requirement: &2156046280 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '2.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2152272220
36
+ version_requirements: *2156046280
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: activesupport
39
- requirement: &2152270580 !ruby/object:Gem::Requirement
39
+ requirement: &2156045320 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '3.0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2152270580
47
+ version_requirements: *2156045320
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bundler
50
- requirement: &2152267080 !ruby/object:Gem::Requirement
50
+ requirement: &2156044600 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 1.0.10
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2152267080
58
+ version_requirements: *2156044600
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rspec
61
- requirement: &2152266140 !ruby/object:Gem::Requirement
61
+ requirement: &2156043980 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 2.6.0
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *2152266140
69
+ version_requirements: *2156043980
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: yard
72
- requirement: &2152189600 !ruby/object:Gem::Requirement
72
+ requirement: &2156043300 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,7 +77,7 @@ dependencies:
77
77
  version: 0.7.1
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *2152189600
80
+ version_requirements: *2156043300
81
81
  description: Why do you keep typing all that crap into your Capistrano recipes? Are
82
82
  you too cool for standards? Well, ARE YA!?
83
83
  email: support@thekompanee.com
@@ -99,6 +99,9 @@ files:
99
99
  - lib/chicken_soup/capabilities/apache/apache-checks.rb
100
100
  - lib/chicken_soup/capabilities/apache/apache-defaults.rb
101
101
  - lib/chicken_soup/capabilities/apache/apache-tasks.rb
102
+ - lib/chicken_soup/capabilities/asset_pipeline/asset_pipeline-checks.rb
103
+ - lib/chicken_soup/capabilities/asset_pipeline/asset_pipeline-defaults.rb
104
+ - lib/chicken_soup/capabilities/asset_pipeline/asset_pipeline-tasks.rb
102
105
  - lib/chicken_soup/capabilities/bundler/bundler-checks.rb
103
106
  - lib/chicken_soup/capabilities/bundler/bundler-defaults.rb
104
107
  - lib/chicken_soup/capabilities/bundler/bundler-tasks.rb