Sha256: e9c1d23298189c9b7e6347a270195caab397525f8555f2d8fe0af95249f65413

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

namespace :figaro do
  desc "Configure Heroku according to application.yml"
  task :heroku, [:app] => :environment do |_, args|
    vars = Figaro.env.map{|k,v| "#{k}=#{v}" }.sort.join(" ")
    command = "heroku config:add #{vars}"
    command << " --app #{args[:app]}" if args[:app]
    Kernel.system(command)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
figaro-0.4.1 lib/figaro/tasks.rake