capcake 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/TODO +7 -0
  2. data/lib/capcake.rb +4 -4
  3. metadata +3 -2
data/lib/TODO ADDED
@@ -0,0 +1,7 @@
1
+ * create cake:logs:tail to find every file modified in the last N hours and then tail them all
2
+ * update deploy:check to check if shared/system/database.php is created or not - force creation if :db is set
3
+ * override deploy:migrate and deploy:migrations to use cake schema shell commands
4
+ * test what's simpler for people in general:
5
+ - using multistage extension for Capistrano
6
+ - creating deploy:production, deploy:staging tasks to reset variables' values
7
+ * refactor code so it looks more like Ruby stuff (ie: Capitate)
data/lib/capcake.rb CHANGED
@@ -155,13 +155,13 @@ Capistrano::Configuration.instance(:must_exist).load do
155
155
  task :symlink, :except => { :no_release => true } do
156
156
  on_rollback do
157
157
  if previous_release
158
- run "rm -f #{current_path}; ln -s #{previous_release} #{current_path}; ln -s #{shared_path}/system #{current_path}/webroot/system; ln -s #{shared_path}/tmp #{current_path}/tmp; true"
158
+ run "rm -f #{current_path}; ln -s #{previous_release} #{current_path}; true"
159
159
  else
160
160
  logger.important "no previous release to rollback to, rollback of symlink skipped"
161
161
  end
162
162
  end
163
-
164
- run "rm -f #{current_path} && ln -s #{latest_release} #{current_path} && ln -s #{shared_path}/system #{current_path}/webroot/system && ln -s #{shared_path}/tmp #{current_path}/tmp"
163
+ run "ln -s #{shared_path}/system #{latest_release}/webroot/system && ln -s #{shared_path}/tmp #{latest_release}/tmp";
164
+ run "rm -f #{current_path} && ln -s #{latest_release} #{current_path}"
165
165
  end
166
166
 
167
167
  desc <<-DESC
@@ -197,7 +197,7 @@ Capistrano::Configuration.instance(:must_exist).load do
197
197
  DESC
198
198
  task :revision, :except => { :no_release => true } do
199
199
  if previous_release
200
- run "rm #{current_path}; ln -s #{previous_release} #{current_path}; ln -s #{shared_path}/system #{current_path}/webroot/system; ln -s #{shared_path}/tmp #{current_path}/tmp"
200
+ run "rm #{current_path}; ln -s #{previous_release} #{current_path};"
201
201
  else
202
202
  abort "could not rollback the code because there is no prior release"
203
203
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capcake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jad Bitar
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-16 00:00:00 -05:00
12
+ date: 2009-12-02 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,6 +32,7 @@ extra_rdoc_files:
32
32
  - LICENSE
33
33
  - README.markdown
34
34
  files:
35
+ - lib/TODO
35
36
  - lib/capcake.rb
36
37
  - lib/templates/maintenance.rhtml
37
38
  - LICENSE