Module: RoCommands::DSL::File
- Included in:
- Info
- Defined in:
- lib/ro_commands/dsl/file.rb
Instance Method Summary collapse
Instance Method Details
#dir?(path) ⇒ Boolean
6 7 8 |
# File 'lib/ro_commands/dsl/file.rb', line 6 def dir?(path) test(?d, path) end |
#file?(path) ⇒ Boolean
file?
11 12 13 |
# File 'lib/ro_commands/dsl/file.rb', line 11 def file?(path) test(?f, path) end |
#find(path) ⇒ Object
15 16 17 |
# File 'lib/ro_commands/dsl/file.rb', line 15 def find(path) Find.find(path).to_a end |
#size(path) ⇒ Object
size
20 21 22 |
# File 'lib/ro_commands/dsl/file.rb', line 20 def size(path) test(?s, path) end |