Module: Bovem::ShellMethods::Write
- Included in:
- Bovem::Shell
- Defined in:
- lib/bovem/shell.rb
Overview
Methods to copy or move entries.
Instance Method Summary (collapse)
-
- (Boolean) copy(src, dst, run: true, show_errors: false, fatal_errors: true)
Copies a set of files or directory to another location.
-
- (Boolean) move(src, dst, run: true, show_errors: false, fatal_errors: true)
Moves a set of files or directory to another location.
Instance Method Details
- (Boolean) copy(src, dst, run: true, show_errors: false, fatal_errors: true)
Copies a set of files or directory to another location.
142 143 144 |
# File 'lib/bovem/shell.rb', line 142 def copy(src, dst, run: true, show_errors: false, fatal_errors: true) copy_or_move(src, dst, operation: :copy, run: run, show_errors: show_errors, fatal_errors: fatal_errors) end |
- (Boolean) move(src, dst, run: true, show_errors: false, fatal_errors: true)
Moves a set of files or directory to another location.
154 155 156 |
# File 'lib/bovem/shell.rb', line 154 def move(src, dst, run: true, show_errors: false, fatal_errors: true) copy_or_move(src, dst, operation: :move, run: run, show_errors: show_errors, fatal_errors: fatal_errors) end |