Class: LocalUnfuddleNotebook::App
- Inherits:
-
Thor
- Object
- Thor
- LocalUnfuddleNotebook::App
- Defined in:
- lib/local_unfuddle_notebook/app.rb
Instance Method Summary collapse
Instance Method Details
#checkout ⇒ Object
12 13 14 |
# File 'lib/local_unfuddle_notebook/app.rb', line 12 def checkout Notebook.with_attributes().pull end |
#pull ⇒ Object
17 18 19 |
# File 'lib/local_unfuddle_notebook/app.rb', line 17 def pull Notebook.local.pull end |
#push ⇒ Object
23 24 25 |
# File 'lib/local_unfuddle_notebook/app.rb', line 23 def push Notebook.local.push [:message] end |
#status ⇒ Object
28 29 30 31 32 33 |
# File 'lib/local_unfuddle_notebook/app.rb', line 28 def status puts "Pages changed locally:" puts Notebook.local.local_pages.select(&:changed?).map{|page| page.local_file.name(true) }.sort end |