Class: EmbeddedJs::Adaptors::IO
- Inherits:
-
Object
- Object
- EmbeddedJs::Adaptors::IO
- Defined in:
- lib/embedded_js/adaptors/io.rb
Instance Method Summary collapse
Instance Method Details
#copy_files(files:, to:) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/embedded_js/adaptors/io.rb', line 9 def copy_files(files:, to:) FileUtils.cp_r( files, to, preserve: true ) end |
#exists?(path:) ⇒ Boolean
17 18 19 |
# File 'lib/embedded_js/adaptors/io.rb', line 17 def exists?(path:) File.exist?(path) end |
#mkdir(path:) ⇒ Object
21 22 23 |
# File 'lib/embedded_js/adaptors/io.rb', line 21 def mkdir(path:) FileUtils.mkdir_p(path) end |
#tmpdir ⇒ Object
25 26 27 |
# File 'lib/embedded_js/adaptors/io.rb', line 25 def tmpdir Dir.tmpdir end |