crafterm/sprinkle — Issue #59: Getting error with has_gem
Author: gummybears
Created: 2012-01-31 02:08:19+00:00
State: open

Using sprinkle 0.4.2 with rbenv on Ubuntu 10.10

Package definition

package :thin do
description "Thin server"
thin_version = "1.3.1"
gem "thin", "#{thin_version}"
verify do
has_gem "thin", "#{thin_version}"
end
end

result in an error
--> Checking if thin is already installed for roles: app
thinthin verification sequence: gem list 'thin' --installed --version '1.3.1' > /dev/null for roles: app
--> Verifying thin...
executing ["gem list 'thin' --installed --version '1.3.1' > /dev/null"] on vpstest.
failed (1).
process returning false
.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/sprinkle-0.4.2/lib/sprinkle/configurable.rb:24:in `[]': can't convert Symbol into Integer (TypeError)
.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/sprinkle-0.4.2/lib/sprinkle/configurable.rb:24:in `method_missing'
,,,