lib/deis/helpers.rb in deis-rails-1.0.3 vs lib/deis/helpers.rb in deis-rails-1.0.4
- old
+ new
@@ -44,9 +44,10 @@
data['domains'] = cmd_result.match(/Domains\r\n(?<domains>.*)/m)[:domains].lines.map(&:strip).reject(&:empty?)
data.sort.to_h
end
def shell(*commands)
+ result = ''
Bundler.with_clean_env do
flags = commands.last.is_a?(Hash) ? commands.pop : {}
command = commands.join ' '
flags.each_with_object(command) do |(k, v), c|
c << case v