Sha256: a3e4ea96c96b338a2d1554d7de7dde4ea1bfcadc8af10360caaa48402fed74b0
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
module Overapp module Load class Command < Base attr_accessor :relative_output_path def command; descriptor; end def load(base,ops={}) if relative_output_path.present? TmpDir.with do |dir| Overapp.ec "cd #{dir} && #{command}", :silent => false RawDir.new(:descriptor => "#{dir}/#{relative_output_path}").load(base,ops) end else Overapp.ec "cd #{ops[:path]} && #{command}", :silent => false RawDir.new(:descriptor => ops[:path]).load(base,ops) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
overapp-0.4.2 | lib/overapp/load/types/command.rb |
overapp-0.4.1 | lib/overapp/load/types/command.rb |