capistrano-ash 1.1.6 → 1.1.7

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.
@@ -1,3 +1,6 @@
1
+ == 1.1.6
2
+ * Bug Fix: removed "config" from ignore statement to prevent legit Magento files from being ignored
3
+
1
4
  == 1.1.5
2
5
  * Added a common method and test tasks to check if a file exists on the remote server
3
6
  * Added drupal:symlink_config_file as a utility task to check if the settings.php file exists in one of two formats (settings.ENV.php or settings.php.ENV)
@@ -48,4 +51,4 @@
48
51
 
49
52
  == 0.0.4 (December 7, 2010)
50
53
 
51
- * Added dependencies to the the gemspec
54
+ * Added dependencies to the the gemspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.6
1
+ 1.1.7
@@ -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.5"
8
+ s.version = "1.1.6"
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{2011-06-22}
12
+ s.date = %q{2011-06-29}
13
13
  s.description = %q{August Ash recipes for Capistrano}
14
14
  s.email = %q{code@augustash.com}
15
15
  s.extra_rdoc_files = [
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  ]
35
35
  s.homepage = %q{https://github.com/augustash/capistrano-ash}
36
36
  s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.6.2}
37
+ s.rubygems_version = %q{1.6.1}
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
@@ -59,6 +59,7 @@ configuration.load do
59
59
  # set the file and directory permissions
60
60
  ash.fixperms
61
61
  run "chmod 400 #{latest_release}/pear"
62
+ run "chmod 400 #{latest_release}/mage"
62
63
  run "chmod o+w #{latest_release}/app/etc"
63
64
  end
64
65
 
@@ -81,7 +82,12 @@ configuration.load do
81
82
  namespace :magento do
82
83
  desc "Set appropriate configuration values for the stage"
83
84
  task :activate_config, :except => { :no_release => true } do
84
- run "cp -f #{latest_release}/app/etc/local.xml.#{stage} #{latest_release}/app/etc/local.xml"
85
+ case true
86
+ when remote_file_exists?("#{latest_release}/app/etc/local.#{stage}.xml")
87
+ run "cp -f #{latest_release}/app/etc/local.#{stage}.xml #{latest_release}/app/etc/local.xml"
88
+ when remote_file_exists?("#{latest_release}/app/etc/local.xml.#{stage}")
89
+ run "cp -f #{latest_release}/app/etc/local.xml.#{stage} #{latest_release}/app/etc/local.xml"
90
+ end
85
91
  end
86
92
 
87
93
  desc "Symlink shared directories"
@@ -113,13 +119,13 @@ configuration.load do
113
119
  puts "#{channel[:host]}: #{data}"
114
120
  break if stream == :err
115
121
  end
116
- end
122
+ end
117
123
  end
118
124
 
119
125
  # --------------------------------------------
120
126
  # Custom tasks
121
127
  # --------------------------------------------
122
-
128
+
123
129
  # update core_config_data; set value = "domain" where scope_id = 0 and path = "web/unsecure/base_url"
124
130
 
125
131
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-ash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-06-29 00:00:00.000000000 -05:00
12
+ date: 2011-07-06 00:00:00.000000000 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
  description: August Ash recipes for Capistrano