Skip to content

Commit

Permalink
Set the entire ENV (plus explicit configuration) in CLI tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
laserlemon committed May 10, 2020
1 parent e932bbe commit 6848ce4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/figaro/cli/heroku_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Figaro
class CLI < Thor
class HerokuSet < Task
def run
system(configuration, command)
system(env, command)
end

private
Expand Down
4 changes: 4 additions & 0 deletions lib/figaro/cli/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def initialize(options = {})

private

def env
ENV.to_hash.update(configuration)
end

def configuration
application.configuration
end
Expand Down

0 comments on commit 6848ce4

Please sign in to comment.