lib/command/env.rb in cpl-0.2.0 vs lib/command/env.rb in cpl-0.3.0
- old
+ new
@@ -10,10 +10,10 @@
LONG_DESCRIPTION = <<~HEREDOC
- Displays app-specific environment variables
HEREDOC
def call
- cp.gvc_get.dig("spec", "env").map do |prop|
+ cp.gvc_get_and_ensure.dig("spec", "env").map do |prop|
# NOTE: atm no special chars handling, consider adding if needed
puts "#{prop['name']}=#{prop['value']}"
end
end
end