capistrano-didi 0.2.2 → 0.2.3

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/Rakefile CHANGED
@@ -24,7 +24,7 @@ Jeweler::Tasks.new do |gem|
24
24
  gem.add_dependency "capistrano", ">= 2.9.0"
25
25
  gem.add_dependency "railsless-deploy", ">= 1.0.2"
26
26
  gem.add_dependency "capistrano-ext", ">= 1.2.1"
27
- gem.post_install_message = '"didify" and "didi" commands installed. Try them out!'
27
+ gem.post_install_message = '=> "didify" and "didi" commands installed. Try them out!'
28
28
  # dependencies defined in Gemfile
29
29
  end
30
30
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/bin/didify CHANGED
@@ -88,7 +88,8 @@ end
88
88
 
89
89
  puts "[done] didified!"
90
90
 
91
- unless File.exists?("drupal")
91
+ unless File.exists?("#{base}/drupal")
92
+ puts ""
92
93
  puts 'WARNING: drupal folder not found! install drupal in folder "drupal" or change the :drupal_path variable.'
93
94
  puts 'WARNING: for example: drush dl drupal --drupal-project-rename="drupal"'
94
95
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano-didi"
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Koen Van Winckel"]
12
- s.date = "2011-10-26"
12
+ s.date = "2011-11-02"
13
13
  s.description = "didi is a collection of recipes for capistrano that allow drupal to be deployed, tested and used in a CI environment"
14
14
  s.email = "koenvw@gmail.com"
15
15
  s.executables = ["didify", "didi"]
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  ]
35
35
  s.homepage = "http://github.com/koenvw/didi"
36
36
  s.licenses = ["MIT"]
37
- s.post_install_message = "\"didify\" and \"didi\" commands installed. Try them out!"
37
+ s.post_install_message = "=> \"didify\" and \"didi\" commands installed. Try them out!"
38
38
  s.require_paths = ["lib"]
39
39
  s.rubygems_version = "1.8.11"
40
40
  s.summary = "didi - drupal deployment script based on capistrano"
@@ -29,6 +29,7 @@ set :use_sudo, false
29
29
  # Defaults. You may change these to your projects convenience
30
30
  # ==============================================
31
31
  #ssh_options[:verbose] = :debug #FIXME
32
+ ssh_options[:forward_agent] = true
32
33
  _cset :domain, 'default'
33
34
  _cset :db_host, 'localhost'
34
35
  _cset :drupal_path, 'drupal'
@@ -71,7 +72,7 @@ namespace :deploy do
71
72
  update
72
73
  cleanup
73
74
  end
74
- #before "deploy:update", "tests:php_lint_test"
75
+ after "deploy:default", "drush:update"
75
76
 
76
77
  desc "Setup a drupal site from scratch"
77
78
  task :cold do
@@ -100,7 +101,8 @@ namespace :deploy do
100
101
  dirs += shared_children.map { |d| File.join(shared_path, d) }
101
102
  run <<-CMD
102
103
  mkdir -p #{dirs.join(' ')} &&
103
- #{try_sudo} chown #{user}:#{srv_usr} #{shared_files}
104
+ #{try_sudo} chown #{user}:#{srv_usr} #{shared_files} &&
105
+ #{try_sudo} chmod g+w #{shared_files}
104
106
  CMD
105
107
 
106
108
  #create drupal config file
@@ -180,9 +182,7 @@ namespace :drush do
180
182
  updb
181
183
  cc
182
184
  end
183
-
184
- after "deploy:symlink", "drush:update"
185
- #after "deploy:setup", "drush:si"
185
+
186
186
 
187
187
  end
188
188
 
@@ -195,7 +195,6 @@ namespace :tests do
195
195
  desc "Test php lint"
196
196
  task :php_lint_test do
197
197
  errors = []
198
-
199
198
  test_files = Dir.glob( File.join( drupal_path, 'sites', '**', '*.{engine,inc,info,install,make,module,php,profile,test,theme,tpl,xtmpl}' ) )
200
199
  if test_files.any?
201
200
  test_files.each do |test_file|
@@ -206,7 +205,6 @@ namespace :tests do
206
205
  end
207
206
  end
208
207
  end
209
-
210
208
  puts "Commit tests failed on files:\n" + errors.join( "\n" ) unless errors.empty?
211
209
  exit 1 unless errors.empty?
212
210
  end
@@ -227,6 +225,7 @@ namespace :tests do
227
225
  end
228
226
  end
229
227
  run "cd #{current_path}/build && tar czf simpletest.tgz simpletest"
228
+ exec "if [[ ! -d build ]]; then mkdir build; fi" # create build folder locally if needed
230
229
  download "#{current_path}/build/simpletest.tgz", "build/", :once => true, :via => :scp
231
230
  exec "tar xzf build/simpletest.tgz -C build"
232
231
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-didi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Koen Van Winckel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-26 00:00:00 Z
18
+ date: 2011-11-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement
@@ -200,7 +200,7 @@ files:
200
200
  homepage: http://github.com/koenvw/didi
201
201
  licenses:
202
202
  - MIT
203
- post_install_message: "\"didify\" and \"didi\" commands installed. Try them out!"
203
+ post_install_message: => "didify" and "didi" commands installed. Try them out!
204
204
  rdoc_options: []
205
205
 
206
206
  require_paths: