Sha256: 00a7f2d8df81aa65e8346c6612f3c19ddc73c6938c7001c2bdd209e5def71adb
Contents?: true
Size: 337 Bytes
Versions: 3
Compression:
Stored size: 337 Bytes
Contents
module Termvana class SetCommand < Command type :builtin response :none name "set" def call key, val = request[1].match(/(.+)=(.+)/) do |matches| [matches[1], matches[2]] end environment.env[key] = val finish end end end Termvana::CommandProcessor.register(Termvana::SetCommand)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
termvana-0.2.0.beta3 | lib/termvana/app/commands/set.rb |
termvana-0.2.0.beta2 | lib/termvana/app/commands/set.rb |
termvana-0.2.0.beta1 | lib/termvana/app/commands/set.rb |