lib/controllers/generate.rb in evertils-0.1.20 vs lib/controllers/generate.rb in evertils-0.2.0
- old
+ new
@@ -1,14 +1,14 @@
-module Granify
+module Evertils
module Controller
class Generate < Controller::Base
attr_accessor :force, :start
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, :deployment)
# user = @model.user
@@ -18,11 +18,11 @@
rescue ::Evernote::EDAM::Error::EDAMUserException => e
Notify.error("Evernote.authenticate error\n#{e.parameter} (#{e.errorCode})")
end
OptionParser.new do |opt|
- opt.banner = "#{Granify::PACKAGE_NAME} generate timeframe [...-flags]"
+ opt.banner = "#{Evertils::PACKAGE_NAME} generate timeframe [...-flags]"
opt.on("-f", "--force", "Force execution") do
@force = true
end
@@ -85,6 +85,6 @@
@model.create_note
end
end
end
-end
\ No newline at end of file
+end