lib/controllers/get.rb in evertils-0.1.20 vs lib/controllers/get.rb in evertils-0.2.0
- old
+ new
@@ -1,21 +1,21 @@
-module Granify
+module Evertils
module Controller
class Get < Controller::Base
attr_accessor :title, :file, :notebook
def pre_exec
begin
# interface with the Evernote API so we can use it later
- @model = Granify::Helper.load('evernote')
+ @model = Evertils::Helper.load('evernote')
# all methods require internet to make API calls
@methods_require_internet.push(:daily, :weekly, :monthly)
# command flag parser
OptionParser.new do |opt|
- opt.banner = "#{Granify::PACKAGE_NAME} new note [...-flags]"
+ opt.banner = "#{Evertils::PACKAGE_NAME} new note [...-flags]"
opt.on("-t", "--title=TITLE", "Set a custom title") do |title|
@title = title
end
@@ -54,17 +54,17 @@
end
else
Notify.error("Could not pull data for notebook #{$request.custom[0]}")
end
else
- Notify.error("Notebook name is a required argument, i.e.\n#{Granify::PACKAGE_NAME} get notebook agendas")
+ Notify.error("Notebook name is a required argument, i.e.\n#{Evertils::PACKAGE_NAME} get notebook agendas")
end
end
def info
@model.info.each_pair do |key, value|
Notify.spit("#{key}: #{value}")
end
end
end
end
-end
\ No newline at end of file
+end