class Figaro::Tasks::Heroku

Public Instance Methods

`(command) click to toggle source
Calls superclass method
# File lib/figaro/tasks.rb, line 23
def `(command)
  Bundler.with_clean_env { super }
end
environment() click to toggle source
# File lib/figaro/tasks.rb, line 14
def environment
  heroku("run 'echo $RAILS_ENV'").chomp[/(\w+)\z/]
end
heroku(command) click to toggle source
# File lib/figaro/tasks.rb, line 18
def heroku(command)
  with_app = app ? " --app #{app}" : ""
  `heroku #{command}#{with_app}`
end
invoke() click to toggle source
# File lib/figaro/tasks.rb, line 6
def invoke
  heroku("config:set #{vars}")
end
vars() click to toggle source
# File lib/figaro/tasks.rb, line 10
def vars
  Figaro.vars(environment)
end