capigento 0.1.3 → 0.1.4

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 (3) hide show
  1. data/CHANGELOG +6 -0
  2. data/lib/magento.rb +8 -7
  3. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.1.4 / Nov 3, 2011
2
+
3
+ Changes in shared_children and shared_files configuration.
4
+ Removed creating var directory and added removing var/cache directory if it was deployed
5
+ Added command removing magento session files
6
+
1
7
  == 0.1.0 / Nov 2, 2011
2
8
 
3
9
  First release.
data/lib/magento.rb CHANGED
@@ -1,10 +1,8 @@
1
1
  load Gem.find_files('capigento.rb').last.to_s
2
2
 
3
- set :cache_path, "var"
3
+ set :shared_children, ["media", "var/session", "system"]
4
4
 
5
- set :shared_children, ["media", "downloader", "system"]
6
-
7
- set :shared_files, ["app/etc/local.xml", "index.php", ".htaccess"]
5
+ set :shared_files, ["app/etc/local.xml"]
8
6
 
9
7
  set :asset_children, []
10
8
 
@@ -18,11 +16,15 @@ namespace :mage do
18
16
  task :clear_cache do
19
17
  run "if [ -d #{current_path}/var/cache ] ; then rm -rf #{current_path}/var/cache/*; fi"
20
18
  end
21
- desc "Rmoves magento assets cache directories content"
19
+ desc "Removes magento assets cache directories content"
22
20
  task :clear_media_cache do
23
21
  run "if [ -d #{current_path}/media/css ] ; then rm -rf #{current_path}/media/css/*; fi"
24
22
  run "if [ -d #{current_path}/media/js ] ; then rm -rf #{current_path}/media/js/*; fi"
25
23
  end
24
+ desc "Removes magento session files"
25
+ task :clear_session do
26
+ run "if [ -d #{current_path}/var/session ] ; then rm -rf #{current_path}/var/session/*; fi"
27
+ end
26
28
  end
27
29
 
28
30
  namespace :deploy do
@@ -48,8 +50,7 @@ namespace :deploy do
48
50
  desc "Update latest release source path."
49
51
  task :finalize_update, :except => { :no_release => true } do
50
52
  run "chmod -R g+w #{latest_release}" if fetch(:group_writable, true)
51
- run "if [ -d #{latest_release}/#{cache_path} ] ; then rm -rf #{latest_release}/#{cache_path}; fi"
52
- run "mkdir -p #{latest_release}/#{cache_path} && chmod -R 0777 #{latest_release}/#{cache_path}"
53
+ run "if [ -d #{latest_release}/var/cache ] ; then rm -rf #{latest_release}/var/cache; fi"
53
54
 
54
55
  share_childs
55
56
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Witold Janusik
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-11-02 00:00:00 +01:00
17
+ date: 2011-11-03 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency