lib/climine/command/base.rb in climine-0.0.2 vs lib/climine/command/base.rb in climine-0.0.3
- old
+ new
@@ -1,10 +1,13 @@
module Climine::Command
class Base < Thor
no_commands {
+ def config
+ @config ||= Climine::Config.new
+ end
def redmine
- @redmine ||= Climine::Redmine.new(Climine::Config.new)
+ @redmine ||= Climine::Redmine.new(config)
end
def render template_name, response
unless response.error
template = Climine::Template.new(template_name)
if template.exist?