Class: Ehbrs::Runner::Vg::Ips::TempFiles
- Inherits:
-
Object
- Object
- Ehbrs::Runner::Vg::Ips::TempFiles
- Defined in:
- lib/ehbrs/runner/vg/ips.rb
Instance Method Summary collapse
Instance Method Details
#input ⇒ Object
109 110 111 |
# File 'lib/ehbrs/runner/vg/ips.rb', line 109 def input swaped? ? temp0 : initial end |
#move_result_to(dest) ⇒ Object
113 114 115 116 117 |
# File 'lib/ehbrs/runner/vg/ips.rb', line 113 def move_result_to(dest) return unless swaped? ::FileUtils.mv(temp0.to_path, dest.to_path) end |
#output ⇒ Object
119 120 121 |
# File 'lib/ehbrs/runner/vg/ips.rb', line 119 def output temp1 end |
#swap ⇒ Object
123 124 125 126 127 128 |
# File 'lib/ehbrs/runner/vg/ips.rb', line 123 def swap temp0_current = temp0 self.temp0 = temp1 self.temp1 = temp0_current @swaped = true end |
#swaped? ⇒ Boolean
130 131 132 |
# File 'lib/ehbrs/runner/vg/ips.rb', line 130 def swaped? @swaped ? true : false end |