Class: Gel::Command::Config

Inherits:
Gel::Command show all
Defined in:
lib/gel/command/config.rb

Instance Attribute Summary

Attributes inherited from Gel::Command

#reraise

Instance Method Summary collapse

Methods inherited from Gel::Command

extract_word, handle_error, run

Instance Method Details

#run(command_line) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/gel/command/config.rb', line 4

def run(command_line)
  if command_line.size == 1
    puts Gel::Environment.config[command_line.first]
  else
    Gel::Environment.config[command_line.shift] = command_line.join(" ")
  end
end