lib/vulcan/cli.rb in vulcan-0.0.3 vs lib/vulcan/cli.rb in vulcan-0.1.0

- old
+ new

@@ -97,13 +97,18 @@ FileUtils.mkdir_p File.expand_path("~/.heroku/plugins/heroku-credentials") File.open(File.expand_path("~/.heroku/plugins/heroku-credentials/init.rb"), "w") do |file| file.puts <<-CONTENTS + class Heroku::Auth + def self.api_key + Heroku::Client.auth(user, password, host)["api_key"] + end + end class Heroku::Command::Credentials < Heroku::Command::Base def index - puts Heroku::Auth.password + puts Heroku::Auth.api_key end end CONTENTS end @@ -116,12 +121,11 @@ FileUtils.cp_r "#{server_path}/.", "." File.open(".gitignore", "w") do |file| file.puts ".env" file.puts "node_modules" end - system "ls -la" - system "git add ." - system "git commit -m commit" + system "git add . >/dev/null" + system "git commit -m commit >/dev/null" system "git push heroku -f master" %x{ env BUNDLE_GEMFILE= heroku config:add SECRET=#{config[:secret]} SPAWN_ENV=heroku HEROKU_APP=#{config[:app]} HEROKU_API_KEY=#{api_key} 2>&1 } %x{ env BUNDLE_GEMFILE= heroku addons:add cloudant:oxygen } end