Sha256: c6803cf8c6a7367fe0cfad39157253d257889e085c603769e1f453969bde6b82
Contents?: true
Size: 510 Bytes
Versions: 4
Compression:
Stored size: 510 Bytes
Contents
require "bundler" module Figaro module Tasks class Heroku < Struct.new(:app) def invoke heroku("config:set #{vars}") end def vars Figaro.vars(environment) end def environment heroku("run 'echo $RAILS_ENV'").chomp[/(\w+)\z/] end def heroku(command) with_app = app ? " --app #{app}" : "" `heroku #{command}#{with_app}` end def `(command) Bundler.with_clean_env { super } end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
mguymon-figaro-0.7.0.1 | lib/figaro/tasks.rb |
figaro-0.7.0 | lib/figaro/tasks.rb |
figaro-0.6.4 | lib/figaro/tasks.rb |
figaro-0.6.3 | lib/figaro/tasks.rb |