capistrano-ash 1.1.13 → 1.1.14

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.13
1
+ 1.1.14
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-ash}
8
- s.version = "1.1.6"
8
+ s.version = "1.1.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["August Ash"]
12
- s.date = %q{2011-06-29}
11
+ s.authors = [%q{August Ash}]
12
+ s.date = %q{2011-09-12}
13
13
  s.description = %q{August Ash recipes for Capistrano}
14
14
  s.email = %q{code@augustash.com}
15
15
  s.extra_rdoc_files = [
@@ -33,8 +33,8 @@ Gem::Specification.new do |s|
33
33
  "lib/ash/zend_doctrine_shared_hosting.rb"
34
34
  ]
35
35
  s.homepage = %q{https://github.com/augustash/capistrano-ash}
36
- s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.6.1}
36
+ s.require_paths = [%q{lib}]
37
+ s.rubygems_version = %q{1.8.6}
38
38
  s.summary = %q{Useful task libraries for August Ash recipes for Capistrano}
39
39
 
40
40
  if s.respond_to? :specification_version then
data/lib/ash/base.rb CHANGED
@@ -17,7 +17,7 @@ configuration.load do
17
17
  # Set default stages
18
18
  set :stages, %w(staging production)
19
19
  set :default_stge, "staging"
20
-
20
+
21
21
  # --------------------------------------------
22
22
  # Task chains
23
23
  # --------------------------------------------
@@ -53,7 +53,7 @@ configuration.load do
53
53
  "RELEASE*", "*.rb", "*.sql", "nbproject", "_template"]
54
54
 
55
55
  # phpMyAdmin version
56
- set :pma_version, "3.3.8"
56
+ set :pma_version, "3.4.5"
57
57
 
58
58
  # Backups Path
59
59
  _cset(:backups_path) { File.join(deploy_to, "backups") }
@@ -63,13 +63,10 @@ configuration.load do
63
63
  _cset(:backup_exclude) { [] }
64
64
  set :exclude_string, ''
65
65
 
66
- # Define the default number of backups to keep
67
- set :keep_backups, 10
68
-
69
66
  # show password requests on windows
70
67
  # (http://weblog.jamisbuck.org/2007/10/14/capistrano-2-1)
71
68
  default_run_options[:pty] = true
72
-
69
+
73
70
  # Database migration settings
74
71
  set :db_local_host, "192.168.16.116"
75
72
  set :db_local_user, "developer"
@@ -79,7 +76,7 @@ configuration.load do
79
76
  set :db_remote_pass, proc{text_prompt("Remote database password for: #{db_remote_user}: ")}
80
77
  set :db_remote_name, proc{text_prompt("Remote database name: #{db_remote_name}: ")}
81
78
  set :db_remote_host, "localhost"
82
-
79
+
83
80
  # Database replacement values
84
81
  # Format: local => remote
85
82
  set :db_regex_hash, {
@@ -93,7 +90,7 @@ configuration.load do
93
90
  task :setup_shared do
94
91
  puts "STUB: Setup"
95
92
  end
96
-
93
+
97
94
  desc "Setup backup directory for database and web files"
98
95
  task :setup_backup, :except => { :no_release => true } do
99
96
  run "#{try_sudo} mkdir -p #{backups_path} && #{try_sudo} chmod g+w #{backups_path}"
@@ -120,14 +117,14 @@ configuration.load do
120
117
  task :getpath do
121
118
  run "echo $PATH"
122
119
  end
123
-
120
+
124
121
  desc 'Copy distribution htaccess file'
125
122
  task :htaccess, :roles => :web do
126
- run "mv #{latest_release}/htaccess.dist #{latest_release}/.htaccess" if
123
+ run "mv #{latest_release}/htaccess.dist #{latest_release}/.htaccess" if
127
124
  remote_file_exists?("#{latest_release}/htaccess.dist")
128
125
  end
129
126
  end
130
-
127
+
131
128
  # --------------------------------------------
132
129
  # PHP tasks
133
130
  # --------------------------------------------
@@ -144,7 +141,7 @@ configuration.load do
144
141
  end
145
142
  end
146
143
  end
147
-
144
+
148
145
  # --------------------------------------------
149
146
  # Remote/Local database migration tasks
150
147
  # --------------------------------------------
@@ -173,7 +170,7 @@ configuration.load do
173
170
  if local_file_exists?("#{db_remote_name}.sql")
174
171
  # run through replacements on SQL file
175
172
  db_regex_hash.each_pair do |local, remote|
176
- system "perl -pi -e 's/#{remote}/#{local}/' #{db_remote_name}.sql"
173
+ system "perl -pi -e 's/#{remote}/#{local}/g' #{db_remote_name}.sql"
177
174
  end
178
175
  # import into database
179
176
  system "mysql -h#{db_local_host} -u#{db_local_user} -p#{db_local_pass} #{db_local_name} < #{db_remote_name}.sql"
@@ -202,7 +199,7 @@ configuration.load do
202
199
  if remote_file_exists?("#{deploy_to}/#{db_local_name}.sql")
203
200
  # run through replacements on SQL file
204
201
  db_regex_hash.each_pair do |local, remote|
205
- run "perl -pi -e 's/#{local}/#{remote}/' #{deploy_to}/#{db_local_name}.sql"
202
+ run "perl -pi -e 's/#{local}/#{remote}/g' #{deploy_to}/#{db_local_name}.sql"
206
203
  end
207
204
  # import into database
208
205
  run "mysql -h#{db_remote_host} -u#{db_remote_user} -p#{db_remote_pass} #{db_remote_name} < #{deploy_to}/#{db_local_name}.sql"
@@ -222,7 +219,7 @@ configuration.load do
222
219
  download "#{deploy_to}/#{db_remote_name}.sql.gz", "#{db_remote_name}.sql.gz", :via => :scp
223
220
  end
224
221
  end
225
-
222
+
226
223
  # --------------------------------------------
227
224
  # phpMyAdmin tasks
228
225
  # --------------------------------------------
@@ -260,11 +257,11 @@ configuration.load do
260
257
 
261
258
  desc <<-DESC
262
259
  Requires the rsync package to be installed.
263
-
260
+
264
261
  Performs a file-level backup of the application and any assets \
265
262
  from the shared directory that have been symlinked into the \
266
263
  applications root or sub-directories.
267
-
264
+
268
265
  You can specify which files or directories to exclude from being \
269
266
  backed up (i.e., log files, sessions, cache) by setting the \
270
267
  :backup_exclude variable
@@ -312,7 +309,7 @@ configuration.load do
312
309
  logger.important "no previous release to backup to; backup of database skipped"
313
310
  end
314
311
  end
315
-
312
+
316
313
  desc <<-DESC
317
314
  Clean up old backups. By default, the last 10 backups are kept on each \
318
315
  server (though you can change this with the keep_backups variable). All \
@@ -358,7 +355,7 @@ configuration.load do
358
355
  end
359
356
  end
360
357
  end
361
-
358
+
362
359
  namespace :dir do
363
360
  desc "Test: Task to test existence of missing dir"
364
361
  task :missing do
@@ -368,7 +365,7 @@ configuration.load do
368
365
  logger.info "GOOD - Verified the '/etc/fake_dir' dir does not exist!"
369
366
  end
370
367
  end
371
-
368
+
372
369
  desc "Test: Task used to test existence of an existing directory"
373
370
  task :exists do
374
371
  if remote_dir_exists?('/etc')
@@ -377,9 +374,6 @@ configuration.load do
377
374
  logger.info "FAIL - WHAT happened to the '/etc' dir???"
378
375
  end
379
376
  end
380
-
381
377
  end
382
-
383
378
  end
384
-
385
379
  end
@@ -11,15 +11,11 @@ configuration.load do
11
11
  # Default variables
12
12
  # --------------------------------------------
13
13
  set :scm_username, "remotesvn"
14
-
15
- # --------------------------------------------
16
- # Task chains
17
- # --------------------------------------------
18
14
 
19
15
  # --------------------------------------------
20
16
  # Overloaded tasks
21
17
  # --------------------------------------------
22
- namespace :deploy do
18
+ namespace :deploy do
23
19
  desc "Setup shared application directories and permissions after initial setup"
24
20
  task :setup_shared do
25
21
  # remove Capistrano specific directories
@@ -41,7 +37,7 @@ configuration.load do
41
37
  task :finalize_update, :roles => :web, :except => { :no_release => true } do
42
38
  # synchronize media directory with shared data
43
39
  run "rsync -rltDvzog #{latest_release}/media/ #{shared_path}/media/"
44
-
40
+
45
41
  # put ".htaccess" in place
46
42
  run "mv #{latest_release}/htaccess.dist #{latest_release}/.htaccess"
47
43
 
@@ -55,14 +51,14 @@ configuration.load do
55
51
  ash.fixperms
56
52
  end
57
53
  end
58
-
54
+
59
55
  namespace :magento do
60
56
  desc "Purge Magento cache directory"
61
57
  task :purge_cache, :roles => :web, :except => { :no_release => true } do
62
58
  run "rm -Rf #{shared_path}/var/cache/*"
63
59
  end
64
60
  end
65
-
61
+
66
62
  # --------------------------------------------
67
63
  # Overloaded Ash tasks
68
64
  # --------------------------------------------
data/lib/ash/magento.rb CHANGED
@@ -12,7 +12,7 @@ configuration.load do
12
12
  # Task chains
13
13
  # --------------------------------------------
14
14
  after "deploy:setup", "deploy:setup_local"
15
- after "deploy:setup_shared", "pma:install"
15
+ # after "deploy:setup_shared", "pma:install"
16
16
  after "deploy:finalize_update", "magento:activate_config"
17
17
  after "deploy:symlink", "magento:symlink"
18
18
  after "deploy", "magento:purge_cache"
@@ -28,7 +28,7 @@ configuration.load do
28
28
  system("cp app/etc/local.xml app/etc/local.xml.staging")
29
29
  system("cp app/etc/local.xml app/etc/local.xml.production")
30
30
  end
31
-
31
+
32
32
  desc "Setup shared application directories and permissions after initial setup"
33
33
  task :setup_shared do
34
34
  # remove Capistrano specific directories
@@ -51,7 +51,7 @@ configuration.load do
51
51
  # synchronize media directory with shared data
52
52
  sudo "rsync -rltDvzog #{latest_release}/media/ #{shared_path}/media/"
53
53
  sudo "chmod -R 777 #{shared_path}/media/"
54
-
54
+
55
55
  # remove directories that will be shared
56
56
  run "rm -Rf #{latest_release}/includes"
57
57
  run "rm -Rf #{latest_release}/media"
@@ -106,11 +106,11 @@ configuration.load do
106
106
  end
107
107
 
108
108
  desc "Watch Magento system log"
109
- task :watch_logs, :roles => :web, :except => { :no_release => true } do
109
+ task :watch_logs, :roles => :web, :except => { :no_release => true } do
110
110
  run "tail -f #{shared_path}/var/log/system.log" do |channel, stream, data|
111
111
  puts # for an extra line break before the host name
112
- puts "#{channel[:host]}: #{data}"
113
- break if stream == :err
112
+ puts "#{channel[:host]}: #{data}"
113
+ break if stream == :err
114
114
  end
115
115
  end
116
116
 
@@ -118,16 +118,10 @@ configuration.load do
118
118
  task :watch_exceptions, :roles => :web, :except => { :no_release => true } do
119
119
  run "tail -f #{shared_path}/var/log/exception.log" do |channel, stream, data|
120
120
  puts # for an extra line break before the host name
121
- puts "#{channel[:host]}: #{data}"
122
- break if stream == :err
121
+ puts "#{channel[:host]}: #{data}"
122
+ break if stream == :err
123
123
  end
124
- end
124
+ end
125
125
  end
126
126
 
127
- # --------------------------------------------
128
- # Custom tasks
129
- # --------------------------------------------
130
-
131
- # update core_config_data; set value = "domain" where scope_id = 0 and path = "web/unsecure/base_url"
132
-
133
127
  end
metadata CHANGED
@@ -1,28 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: capistrano-ash
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.14
4
5
  prerelease:
5
- version: 1.1.13
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - August Ash
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-09-29 00:00:00 -05:00
14
- default_executable:
12
+ date: 2011-10-04 00:00:00.000000000Z
15
13
  dependencies: []
16
-
17
14
  description: August Ash recipes for Capistrano
18
15
  email: code@augustash.com
19
16
  executables: []
20
-
21
17
  extensions: []
22
-
23
- extra_rdoc_files:
18
+ extra_rdoc_files:
24
19
  - README.textile
25
- files:
20
+ files:
26
21
  - CHANGELOG.rdoc
27
22
  - README.textile
28
23
  - Rakefile
@@ -38,33 +33,28 @@ files:
38
33
  - lib/ash/wordpress_shared_hosting.rb
39
34
  - lib/ash/zend_doctrine.rb
40
35
  - lib/ash/zend_doctrine_shared_hosting.rb
41
- has_rdoc: true
42
36
  homepage: https://github.com/augustash/capistrano-ash
43
37
  licenses: []
44
-
45
38
  post_install_message:
46
39
  rdoc_options: []
47
-
48
- require_paths:
40
+ require_paths:
49
41
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
42
+ required_ruby_version: !ruby/object:Gem::Requirement
51
43
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: "0"
56
- required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
49
  none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
62
54
  requirements: []
63
-
64
55
  rubyforge_project:
65
- rubygems_version: 1.6.2
56
+ rubygems_version: 1.8.10
66
57
  signing_key:
67
58
  specification_version: 3
68
59
  summary: Useful task libraries for August Ash recipes for Capistrano
69
60
  test_files: []
70
-