capistrano-ash 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.rdoc +6 -0
- data/LICENSE.txt +20 -0
- data/VERSION +1 -1
- data/capistrano-ash.gemspec +1 -1
- data/lib/ash/base.rb +2 -1
- data/lib/ash/common.rb +4 -4
- data/lib/ash/magento.rb +4 -4
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjUwNmQyZTMxMTNiYjMwMjU3NmEwNDRjODkyOTMyYWY0ZDBkMDQxZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzlmNGZkZjk0NjJkMDAyNDYxYmZhMDE2MzVhYjY3YTA2NGRiYzAwZg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YThjYzdhMDg5ODQxYWI2YzNlMjdiOTQ0YzgzZWMwMmMyMWM5NjU2OGY3MWI1
|
10
|
+
MmU4Y2M0MDBiNmQ1ZTIzMDNmYTMwZjFhODI0MjdhOTc5MWVlZjBmMzFiZmU5
|
11
|
+
Y2FhOTZlMzgwYzM4ZDM3YzI0YWNlYjFmODk1OGIwNzJjYjI5YjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTc0NzQ0NTMyMjQwYmM5ZjMxNWFmYWZlNTlkOTIyZThlMWVlZjRkM2U0ZDk4
|
14
|
+
YWY4ZjhhODIyZTQ2ZDY5ZmI2NjNhYWZhMDNhZTAxMTVhMjBiYzkzNTAwMzc2
|
15
|
+
MjMwNjdjZmU5MTM5OWIzMzZkMWQzNTBiOTA5M2VmMWYyYWYzYjI=
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== 1.3.4
|
2
|
+
* CLOSED: Issue #41 - capistrano-ash is now under a MIT License
|
3
|
+
* FIXED: Issue #43 - define port number if it hasn't already been set
|
4
|
+
* FIXED: Issue #44 - fixes issue with set_perms_dirs if the path is not a directory
|
5
|
+
* MERGED PULL REQUEST: Issue #45 - Replace 'sudo' with 'try_sudo' so that 'set :use_sudo, false' works
|
6
|
+
|
1
7
|
== 1.3.3
|
2
8
|
* FIXED: Issue #42 - chown backups path was failing miserably in the deploy:setup_backup task
|
3
9
|
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) [year] [fullname]
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
data/capistrano-ash.gemspec
CHANGED
data/lib/ash/base.rb
CHANGED
@@ -423,7 +423,7 @@ configuration.load do
|
|
423
423
|
|
424
424
|
# fix permissions on the the files and directories before removing them
|
425
425
|
archives.split(" ").each do |backup|
|
426
|
-
set_perms_dirs("#{backup}", 755)
|
426
|
+
set_perms_dirs("#{backup}", 755) if File.directory?(backup)
|
427
427
|
set_perms_files("#{backup}", 644)
|
428
428
|
end
|
429
429
|
|
@@ -453,6 +453,7 @@ configuration.load do
|
|
453
453
|
task :upload_stylesheets, :roles => :web, :except => { :no_release => true } do
|
454
454
|
watched_dirs = fetch(:compass_watched_dirs, nil)
|
455
455
|
stylesheets_dir_name = fetch(:stylesheets_dir_name, 'stylesheets')
|
456
|
+
port = fetch(:port, 22)
|
456
457
|
|
457
458
|
# finds all the web servers that we should upload stylesheets to
|
458
459
|
servers = find_servers :roles => :web
|
data/lib/ash/common.rb
CHANGED
@@ -26,7 +26,7 @@ def local_dir_exists?(full_path)
|
|
26
26
|
File.directory?(full_path)
|
27
27
|
end
|
28
28
|
|
29
|
-
# Test to see if a file exists by providing
|
29
|
+
# Test to see if a file exists by providing
|
30
30
|
# the full path to the expected file location
|
31
31
|
def remote_file_exists?(full_path)
|
32
32
|
'true' == capture("if [ -e #{full_path} ]; then echo 'true'; fi").strip
|
@@ -42,12 +42,12 @@ def remote_dir_exists?(dir_path)
|
|
42
42
|
'true' == capture("if [[ -d #{dir_path} ]]; then echo 'true'; fi").strip
|
43
43
|
end
|
44
44
|
|
45
|
-
# set the permissions for files recurisvely from the starting directory (dir_path)
|
45
|
+
# set the permissions for files recurisvely from the starting directory (dir_path)
|
46
46
|
def set_perms_files(dir_path, perm = 644)
|
47
47
|
try_sudo "find #{dir_path} -type f -print0 | xargs -0 chmod #{perm}"
|
48
48
|
end
|
49
49
|
|
50
|
-
# set the permissions for directories recurisvely from the starting directory (dir_path)
|
50
|
+
# set the permissions for directories recurisvely from the starting directory (dir_path)
|
51
51
|
def set_perms_dirs(dir_path, perm = 755)
|
52
|
-
try_sudo "find #{dir_path} -type d -print0 | xargs -0 chmod #{perm}"
|
52
|
+
try_sudo "find #{dir_path} -type d -print0 | xargs -0 chmod #{perm}" if File.directory?(dir_path)
|
53
53
|
end
|
data/lib/ash/magento.rb
CHANGED
@@ -55,8 +55,8 @@ configuration.load do
|
|
55
55
|
desc "[internal] Touches up the released code. This is called by update_code after the basic deploy finishes."
|
56
56
|
task :finalize_update, :roles => :web, :except => { :no_release => true } do
|
57
57
|
# synchronize media directory with shared data
|
58
|
-
|
59
|
-
|
58
|
+
try_sudo "rsync -rltDvzog #{latest_release}/media/ #{shared_path}/media/"
|
59
|
+
try_sudo "chmod -R 777 #{shared_path}/media/"
|
60
60
|
|
61
61
|
# remove directories that will be shared
|
62
62
|
run "rm -Rf #{latest_release}/includes"
|
@@ -108,7 +108,7 @@ configuration.load do
|
|
108
108
|
|
109
109
|
desc "Purge Magento cache directory"
|
110
110
|
task :purge_cache, :roles => :web, :except => { :no_release => true } do
|
111
|
-
|
111
|
+
try_sudo "rm -Rf #{shared_path}/var/cache/*"
|
112
112
|
end
|
113
113
|
|
114
114
|
desc "Watch Magento system log"
|
@@ -132,7 +132,7 @@ configuration.load do
|
|
132
132
|
desc "Clear the Magento Cache"
|
133
133
|
task :cc, :roles => [:web, :app], :except => { :no_release => true } do
|
134
134
|
magento.purge_cache
|
135
|
-
|
135
|
+
try_sudo "rm -rf #{shared_path}/var/full_page_cache/*"
|
136
136
|
end
|
137
137
|
|
138
138
|
desc "Enable display errors"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-ash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- August Ash
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -71,9 +71,11 @@ email: code@augustash.com
|
|
71
71
|
executables: []
|
72
72
|
extensions: []
|
73
73
|
extra_rdoc_files:
|
74
|
+
- LICENSE.txt
|
74
75
|
- README.textile
|
75
76
|
files:
|
76
77
|
- CHANGELOG.rdoc
|
78
|
+
- LICENSE.txt
|
77
79
|
- README.textile
|
78
80
|
- Rakefile
|
79
81
|
- VERSION
|