remote_file distzipexe do
source node['drupal']['windows']['sqlserv-driver']['source']
checksum node['drupal']['windows']['sqlserv-driver']['checksum']
notifies :run, 'windows_batch[open-sqlserv-driver]', :immediately
notifies :run, 'windows_batch[move-sqlserv-plugin]', :immediately
end
# unroll and dump in same dir
windows_batch "open-sqlserv-driver" do
action :nothing
code <<-EOH
#{distzipexe.gsub!('/', '\\')} /T:#{sourcepath.gsub!('/','\\')} /C /Q
EOH
end
Generated at 2013-04-16 20:18:54 +0000
NoMethodError: undefined method `run_action' for "windows_batch[open-sqlserv-driver]":String
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/runner.rb:50:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/runner.rb:58:in `block in run_action'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/runner.rb:56:in `each'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/runner.rb:56:in `run_action'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/runner.rb:82:in `block (2 levels) in converge'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/runner.rb:82:in `each'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/runner.rb:82:in `block in converge'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/resource_collection.rb:94:in `block in execute_each_resource'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/resource_collection.rb:92:in `execute_each_resource'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/runner.rb:81:in `converge'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/client.rb:404:in `converge'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/client.rb:469:in `do_run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/client.rb:200:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application.rb:190:in `run_chef_client'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/client.rb:297:in `block in run_application'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/client.rb:290:in `loop'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application/client.rb:290:in `run_application'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/lib/chef/application.rb:73:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.0/bin/chef-client:26:in `<top (required)>'
C:/opscode/chef/bin/chef-client:23:in `load'
C:/opscode/chef/bin/chef-client:23:in `<main>'
[2013-04-16T20:18:54+00:00] INFO: remote_file[c:/chef/cache/drupal-sqlserv-drive
r/drupal-sqlserv-driver.exe] sending run action to windows_batch[open-sqlserv-dr
iver] (immediate)
[2013-04-16T20:18:54+00:00] INFO: Running queued delayed notifications before re
-raising exception
[2013-04-16T20:18:54+00:00] ERROR: Running exception handlers
[2013-04-16T20:18:54+00:00] FATAL: Saving node information to c:/chef/cache/fail
ed-run-data.json
[2013-04-16T20:18:54+00:00] ERROR: Exception handlers complete
Chef Client failed. 1 resources updated←[0m
[2013-04-16T20:18:54+00:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stack
trace.out
[2013-04-16T20:18:54+00:00] FATAL: NoMethodError: undefined method `run_action'
for "windows_batch[open-sqlserv-driver]":String
batch (not windows_batch) should support notify.