capistrano-ash 0.0.15 → 0.0.16

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.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,18 @@
1
+ == 0.0.15
2
+
3
+ * Added doctrine:migrate method for the ash/zend_doctrine recipe
4
+ * Finished the stubbed methods for backup:web and backup:db
5
+ * Added the backups_path variable which should default to #{deploy_to}/backups
6
+ * Added more examples to the README for the Zend_Doctrine recipe
7
+
8
+ == 0.0.13
9
+
10
+ * Jake added WordPress recipe
11
+
12
+ == 0.0.12
13
+
14
+ * Pete added Magento recipe and more STUB methods
15
+
1
16
  == 0.0.11 (December 8, 2010)
2
17
 
3
18
  * Fixed some of my "uh-oh" moments and debugged the ash/base.rb and ash/zend_doctrine.rb files
data/README.textile CHANGED
@@ -8,14 +8,18 @@ where each key is a folder in your @sites@ directory and each value is the URL o
8
8
 
9
9
  h2. Deploying Zend or Zend/Doctrine example
10
10
 
11
+ h3. Capfile
12
+
11
13
  <pre>
12
14
  <code>
13
15
  # Capfile
14
16
  load 'deploy' if respond_to?(:namespace) # cap2 differentiator
15
17
 
16
- # Define available stages
17
- set :stages, %w(staging production)
18
- set :default_stage, "staging"
18
+ # --------------------------------------------
19
+ # :applicaiton HAS TO BE DEFINED BEFORE
20
+ # REQUIRING 'ash/zend_doctrine' LIBRARY
21
+ # --------------------------------------------
22
+ set :application, "BEST_APP_EVER"
19
23
 
20
24
  # --------------------------------------------
21
25
  # Define required Gems/libraries
@@ -30,9 +34,6 @@ h2. Deploying Zend or Zend/Doctrine example
30
34
  role :web, "bestappever.com"
31
35
  role :db, "bestappever.com", :primary => true
32
36
 
33
- # Application settings.
34
- set :application, "best_app_ever"
35
-
36
37
  # VCS information.
37
38
  set :repository, "https://svn.example.com/REPO/trunk"
38
39
  set :scm_username, "SVN_USER"
@@ -41,10 +42,22 @@ h2. Deploying Zend or Zend/Doctrine example
41
42
  # SSH login credentials
42
43
  set :user, "SSH_USER"
43
44
  set :password, proc{Capistrano::CLI.password_prompt("SSH password for '#{user}':")}
45
+
46
+ # Deploy to file path
47
+ set(:deploy_to) { "/var/www/#{application}/#{stage}" }
48
+
49
+ # Database credentials
50
+ set :dbuser, "DB_USER_NAME"
51
+
52
+ # Define which files or directories you want to exclude from being backed up
53
+ set(:backup_exclude) { [ "var/" ] }
54
+
44
55
 
45
56
  # --------------------------------------------
46
57
  # Calling our Methods
47
58
  # --------------------------------------------
59
+ before "deploy:update_code", "deploy:setup_backup"
60
+ after "deploy:setup_backup", "backup"
48
61
  after "deploy:setup_shared", "app:setup_shared"
49
62
  after "zend:symlink", "app:symlink"
50
63
 
@@ -64,4 +77,30 @@ h2. Deploying Zend or Zend/Doctrine example
64
77
  end
65
78
  end
66
79
  </code>
67
- </pre>
80
+ </pre>
81
+
82
+ h3. config/deploy/staging.rb
83
+
84
+ <pre>
85
+ <code>
86
+ # config/deploy/staging.rb
87
+ # Database Name
88
+ set :dbname, "DB_NAME"
89
+
90
+ # Backups Path (/var/www/#{application}/staging/backups)
91
+ set :backups_path, "#{deploy_to}/backups"
92
+ </code>
93
+ </pre>
94
+
95
+ h3. config/deploy/production.rb
96
+
97
+ <pre>
98
+ <code>
99
+ # config/deploy/production.rb
100
+ # Database Name
101
+ set :dbname, "DB_NAME"
102
+
103
+ # Backups Path (/var/www/#{application}/production/backups)
104
+ set :backups_path, "#{deploy_to}/backups"
105
+ </code>
106
+ </pre>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.15
1
+ 0.0.16
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-ash}
8
- s.version = "0.0.13"
8
+ s.version = "0.0.15"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["August Ash"]
12
- s.date = %q{2010-12-22}
12
+ s.date = %q{2010-12-28}
13
13
  s.description = %q{August Ash recipes for Capistrano}
14
14
  s.email = %q{jake@augustash.com}
15
15
  s.extra_rdoc_files = [
data/lib/ash/base.rb CHANGED
@@ -23,7 +23,7 @@ configuration.load do
23
23
  # Task chains
24
24
  # --------------------------------------------
25
25
  after "deploy:setup", "deploy:setup_shared"
26
- after "deploy:setup_shared", "deploy:setup_backups"
26
+ after "deploy:setup_shared", "deploy:setup_backup"
27
27
  after "deploy", "deploy:cleanup"
28
28
 
29
29
  # --------------------------------------------
@@ -166,8 +166,6 @@ configuration.load do
166
166
  logger.debug "Exclude string = #{exclude_string}"
167
167
  end
168
168
 
169
- # run "tar -cvpzf #{backups_path}/#{release_name}.tar.gz #{exclude_string} #{current_path} #{shared_path}"
170
-
171
169
  # Copy the previous release to the /tmp directory
172
170
  logger.debug "Copying previous release to the /tmp/#{release_name} directory"
173
171
  run "rsync -avzrtpL #{exclude_string} #{current_path}/ /tmp/#{release_name}/"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 15
9
- version: 0.0.15
8
+ - 16
9
+ version: 0.0.16
10
10
  platform: ruby
11
11
  authors:
12
12
  - August Ash