lib/meroku/cli/secrets.rb in meroku-2.0.17 vs lib/meroku/cli/secrets.rb in meroku-2.0.18

- old
+ new

@@ -9,10 +9,11 @@ Dotenv.load(env_file) end def self.attempt_download abort 'ENV["SECRET"] not found' unless ENV['SECRET'] - `curl -o ~/.meroku/meroku.env https://s3.amazonaws.com/#{ENV['SECRET']}/meroku.env` + FileUtils.mkdir_p "#{Dir.home}/.meroku" + `curl -so ~/.meroku/meroku.env https://s3.amazonaws.com/#{ENV['SECRET']}/meroku.env` end end end end