Class: Sheet::List

Inherits:
Object
  • Object
show all
Defined in:
lib/sheet/list.rb

Instance Method Summary collapse

Instance Method Details

#listObject



4
5
6
7
8
9
10
# File 'lib/sheet/list.rb', line 4

def list
  if Sheet.sheets_directory_exists?
    Sheet.exec("ls -1 #{Sheet.sheets_dir}", true)
  else
    Sheet.display("No sheet found. Create a new sheet with `sheet new <name>`")
  end
end