user391986
user391986

Reputation: 30906

You must first run "eb init" when running from script

I wrote a ruby shell script that automates my deployment process. In the command line when I run eb deploy everything works fine. But when I run this from my ruby script I get

ERROR: This directory has not been set up with the EB CLI You must first run "eb init".

Why doesn't this work?

Within my ruby script this is how I tried calling the command

`eb deploy`

and

IO.popen(command) do |io|
  while (line = io.gets) do
    puts line
  end
  io.close
end

Upvotes: 0

Views: 1058

Answers (1)

user391986
user391986

Reputation: 30906

I had the wrong active directory being used in the ruby script.

Upvotes: 1

Related Questions