class Overapp::Load::Command
Attributes
relative_output_path[RW]
Public Instance Methods
command()
click to toggle source
# File lib/overapp/load/types/command.rb, line 5 def command; descriptor; end
load(base,ops={})
click to toggle source
# File lib/overapp/load/types/command.rb, line 15 def load(base,ops={}) base.with_tmp do |dir| Overapp.ec "cd #{dir} && #{command}", :silent => true RawDir.new(:descriptor => target_path(dir)) end end
target_path(dir)
click to toggle source
# File lib/overapp/load/types/command.rb, line 7 def target_path(dir) if relative_output_path.present? "#{dir}/#{relative_output_path}" else dir end end