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