Sha256: 031db89167de53437a4abd97fb684dec48649a6a172be698462cb47b86283350
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
module Callisto class Shell attr_accessor :executable, :arguments def self.bin_path=(path) @@bin_path = path end def initialize(executable, arguments) self.executable = executable self.arguments = arguments end def command prefix = if defined?(@@bin_path) File.join(@@bin_path, executable) else executable end "#{prefix} #{arguments}" end def run `#{command}`.chomp end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
callisto-0.9 | lib/callisto/shell.rb |