Great, looks like it's expecting at string, but getting nil...
here is the log output:
Problem listing tasks of stage 1: can't convert nil into String - /
home/deploy/webistrano/lib/webistrano/deployer.rb:147:in `sub!'
/home/deploy/webistrano/lib/webistrano/deployer.rb:147:in
`resolve_references'
/home/deploy/webistrano/lib/webistrano/deployer.rb:144:in `each'
/home/deploy/webistrano/lib/webistrano/deployer.rb:144:in
`resolve_references'
/home/deploy/webistrano/lib/webistrano/deployer.rb:131:in
`set_stage_configuration'
/home/deploy/webistrano/lib/webistrano/deployer.rb:130:in `each'
/home/deploy/webistrano/lib/webistrano/deployer.rb:130:in
`set_stage_configuration'
/home/deploy/webistrano/lib/webistrano/deployer.rb:114:in
`set_up_config'
/home/deploy/webistrano/lib/webistrano/deployer.rb:285:in `list_tasks'
/home/deploy/webistrano/app/models/stage.rb:127:in `list_tasks'
/home/deploy/webistrano/app/controllers/stages_controller.rb:17:in
`show'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
base.rb:1331:in `send'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
base.rb:1331:in `perform_action_without_filters'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
filters.rb:617:in `call_filters'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
filters.rb:638:in `run_before_filters'
/home/deploy/webistrano/app/controllers/application_controller.rb:
24:in `set_timezone'
/home/deploy/webistrano/vendor/rails/activesupport/lib/active_support/
callbacks.rb:178:in `send'
/home/deploy/webistrano/vendor/rails/activesupport/lib/active_support/
callbacks.rb:178:in `evaluate_method'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
filters.rb:186:in `call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
filters.rb:635:in `run_before_filters'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
filters.rb:615:in `call_filters'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
filters.rb:610:in `perform_action_without_benchmark'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/home/deploy/webistrano/vendor/rails/activesupport/lib/active_support/
core_ext/benchmark.rb:17:in `ms'
/usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/deploy/webistrano/vendor/rails/activesupport/lib/active_support/
core_ext/benchmark.rb:17:in `ms'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
rescue.rb:160:in `perform_action_without_flash'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
flash.rb:146:in `perform_action'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
base.rb:532:in `send'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
base.rb:532:in `process_without_filters'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
filters.rb:606:in `process'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
base.rb:391:in `process'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
base.rb:386:in `call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
routing/route_set.rb:437:in `call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:87:in `dispatch'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:121:in `_call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:130:in `build_middleware_stack'
/home/deploy/webistrano/vendor/rails/activerecord/lib/active_record/
query_cache.rb:29:in `call'
/home/deploy/webistrano/vendor/rails/activerecord/lib/active_record/
query_cache.rb:29:in `call'
/home/deploy/webistrano/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/query_cache.rb:34:in `cache'
/home/deploy/webistrano/vendor/rails/activerecord/lib/active_record/
query_cache.rb:9:in `cache'
/home/deploy/webistrano/vendor/rails/activerecord/lib/active_record/
query_cache.rb:28:in `call'
/home/deploy/webistrano/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_pool.rb:361:in `call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
string_coercion.rb:25:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in
`call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/
methodoverride.rb:24:in `call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
params_parser.rb:15:in `call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
session/cookie_store.rb:93:in `call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
failsafe.rb:26:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`call'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:114:in `call'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
reloader.rb:34:in `run'
/home/deploy/webistrano/vendor/rails/actionpack/lib/action_controller/
dispatcher.rb:108:in `call'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/rack/adapter/rails.rb:
74:in `call'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
76:in `pre_process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
74:in `catch'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
74:in `pre_process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
57:in `process'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/connection.rb:
42:in `receive_data'
/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in `run_machine'
/usr/local/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/
eventmachine.rb:256:in `run'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:
57:in `start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in
`start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/controllers/
controller.rb:80:in `start'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:177:in
`send'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:177:in
`run_command'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/lib/thin/runner.rb:143:in
`run!'
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.7/bin/thin:6
/usr/local/bin/thin:19:in `load'
/usr/local/bin/thin:19
On May 19, 12:37 pm, Jonathan Weiss <
j...@innerewut.de> wrote:
> Should have been:
>
> def list_tasks
> d = Deployment.new
> d.stage = self
> deployer = Webistrano::Deployer.new(d)
> begin
> deployer.list_tasks.collect { |t| {:name =>
> t.fully_qualified_name, :description => t.description} }.delete_if{|t|
> t[:name] == 'shell' || t[:name] == 'invoke'}
> rescue Exception => e
> RAILS_DEFAULT_LOGGER.error("Problem listing tasks of stage
> #{id}: #{e} - #{e.backtrace.join("\n")} ")
> [{:name => "Error", :description => "Could not load tasks -
> syntax error in recipe definition?"}]
> end
> end
>
> See alsohttp://
github.com/peritor/webistrano/commit/21b14b92b8982d19a754f4d8f...
> Jonathan Weisshttp://blog.innerewut.dehttp://
twitter.com/jweiss