Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config/deploy.rb - config settings not assigned #22

Open
mxgrn opened this issue Jan 2, 2011 · 4 comments
Open

config/deploy.rb - config settings not assigned #22

mxgrn opened this issue Jan 2, 2011 · 4 comments

Comments

@mxgrn
Copy link

mxgrn commented Jan 2, 2011

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.

@dcrec1
Copy link
Owner

dcrec1 commented Jan 2, 2011

Hi Sergei,

what Inploy version and Ruby version are you using?

@mxgrn
Copy link
Author

mxgrn commented Jan 2, 2011

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

@dcrec1
Copy link
Owner

dcrec1 commented Jan 2, 2011

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 ]

@mxgrn
Copy link
Author

mxgrn commented Jan 2, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants