Sha256: b97eb6b2922e591b1b3382e4406b54ea3185efd45e1b5466fb993c373a8a008b
Contents?: true
Size: 392 Bytes
Versions: 5
Compression:
Stored size: 392 Bytes
Contents
class Ppl::Command::External < Ppl::Application::Command attr_accessor :command def initialize(name, command, description) @name = name @command = command @description = description end def execute(input, output) if !input.arguments.empty? @command += " " + input.arguments.join(" ") end Dir.chdir(@storage.path) Kernel.exec(@command) end end
Version data entries
5 entries across 5 versions & 1 rubygems