Module: Rsh::Marks
- Included in:
- Box
- Defined in:
- lib/rsh/box/marks.rb
Instance Method Summary collapse
Instance Method Details
#clear_marks ⇒ Object
13 14 15 |
# File 'lib/rsh/box/marks.rb', line 13 def clear_marks bash "rm -r #{marks_dir}" end |
#has_mark?(key) ⇒ Boolean
8 9 10 11 |
# File 'lib/rsh/box/marks.rb', line 8 def has_mark? key ensure_mark_requrements! file_exist? "#{marks_dir}/#{key}" end |
#mark(key) ⇒ Object
3 4 5 6 |
# File 'lib/rsh/box/marks.rb', line 3 def mark key ensure_mark_requrements! bash "touch #{marks_dir}/#{key}" end |