inploy icon indicating copy to clipboard operation
inploy copied to clipboard

config/deploy.rb - config settings not assigned

Open mxgrn opened this issue 15 years ago • 4 comments

deploy.rb like this:

application = "signal"
repository = 'git://github.com/dcrec1/signal.git'
hosts = ['hooters', 'geni']

... wouldn't take any effect.

While this:

@application = "signal"
@repository = 'git://github.com/dcrec1/signal.git'
@hosts = ['hooters', 'geni']

... does work.

mxgrn avatar Jan 02 '11 18:01 mxgrn

Hi Sergei,

what Inploy version and Ruby version are you using?

dcrec1 avatar Jan 02 '11 20:01 dcrec1

Ruby 1.9.2p0, inploy 1.8 (and I also tried to install the gem directly from GitHub). Thanks for looking at it!

mxgrn avatar Jan 02 '11 20:01 mxgrn

Can you please try with another Ruby 1.9.2 version? I just tried with this two versions without problems:

ruby-1.9.2-head [ x86_64 ] ruby-1.9.2-preview1 [ x86_64 ]

dcrec1 avatar Jan 02 '11 22:01 dcrec1

Just tried with 1.9.2-head, same result. Btw, here's the error trace:

/Users/skozlov/.rvm/gems/ruby-1.9.2-head/gems/inploy-1.8/lib/inploy/dsl.rb:71:in `remote_run': undefined method `each' for nil:NilClass (NoMethodError)
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/gems/inploy-1.8/lib/inploy/deploy.rb:57:in `remote_update'
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/gems/inploy-1.8/lib/inploy/cli.rb:7:in `execute'
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/gems/inploy-1.8/bin/inploy:7:in `<top (required)>'
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/bin/inploy:19:in `load'
from /Users/skozlov/.rvm/gems/ruby-1.9.2-head/bin/inploy:19:in `<main>'

When I look into Inploy code, I see that the "hosts" somehow returns nil. As soon as I configure hosts by assigning @hosts, it works.

mxgrn avatar Jan 02 '11 22:01 mxgrn