Method: Nugrant::Helper::Env::Exporter.unset_command

Defined in:
lib/nugrant/helper/env/exporter.rb

.unset_command(key, value, options = {}) ⇒ Object

Returns a string representation of the command that needs to be used on the current platform to unset an environment variable.

Parameters:

  • key

    The key of the environment variable to export. It cannot be nil.

Returns:

  • The unset command, as a string


188
189
190
191
# File 'lib/nugrant/helper/env/exporter.rb', line 188

def self.unset_command(key, value, options = {})
  # TODO: Handle platform differently
  "unset #{key}"
end