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: Crontab, Installer, Main, NotesDirectory
Constant Summary
collapse
- USAGE =
<<~EOS
Usage: notes.rb <command>
One of the following commands must be specified
install Install the cronjob to invoke ghetto notes
sync Sync notes to remote - pull, commit then push
EOS
- VERSION =
"0.1.6"
Class Method Summary
collapse
Class Method Details
.bin_file ⇒ Object
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_usage ⇒ Object
16
17
18
19
|
# File 'lib/ghetto_notes.rb', line 16
def self.exit_with_usage
$stderr.puts(USAGE)
exit(1)
end
|