Module: GhettoNotes

Defined in:
lib/ghetto_notes.rb,
lib/ghetto_notes/main.rb,
lib/ghetto_notes/version.rb,
lib/ghetto_notes/installer.rb,
lib/ghetto_notes/notes_directory.rb

Defined Under Namespace

Classes: Installer, Main, NotesDirectory

Constant Summary collapse

USAGE =
"Usage: notes.rb <command>\n\nOne of the following commands must be specified\n\n    install    Install the cronjob to invoke ghetto notes\n    sync       Sync notes to remote - pull, commit then push\n"
VERSION =
"0.1.4"

Class Method Summary collapse

Class Method Details

.bin_fileObject



21
22
23
24
# File 'lib/ghetto_notes.rb', line 21

def self.bin_file
  path = File.join(File.dirname(__FILE__), '..', 'exe', 'ghetto_notes')
  File.expand_path(path)
end

.exit_with_usageObject



16
17
18
19
# File 'lib/ghetto_notes.rb', line 16

def self.exit_with_usage
  $stderr.puts(USAGE)
  exit(1)
end