Class: LocalUnfuddleNotebook::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/local_unfuddle_notebook/app.rb

Instance Method Summary collapse

Instance Method Details

#checkoutObject



12
13
14
# File 'lib/local_unfuddle_notebook/app.rb', line 12

def checkout
  Notebook.with_attributes(options).pull
end

#pullObject



17
18
19
# File 'lib/local_unfuddle_notebook/app.rb', line 17

def pull
  Notebook.local.pull
end

#pushObject



23
24
25
# File 'lib/local_unfuddle_notebook/app.rb', line 23

def push
  Notebook.local.push options[:message]
end

#statusObject



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