Sha256: 562b623e6e5bee3ecf978b131fd764bac0d5d2b0cf9f636ebe50297eda8d76fd
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
module Shella class Runner def initialize(lines) @lines = lines.map { |line| line.strip } end def run @lines.each do |line| next if line.size.zero? command, args = line.split(" ", 2) Shella::Shell.send(command, args) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shella-0.1.0 | lib/shella/runner.rb |