Class: Tumugi::Target

Inherits:
Object
  • Object
show all
Defined in:
lib/tumugi/target.rb

Direct Known Subclasses

Plugin::FileSystemTarget

Instance Method Summary collapse

Constructor Details

#initializeTarget

Returns a new instance of Target.



5
6
7
# File 'lib/tumugi/target.rb', line 5

def initialize
  super()
end

Instance Method Details

#exist?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/tumugi/target.rb', line 9

def exist?
  raise NotImplementedError, "You must implement #{self.class}##{__method__}"
end

#log(msg) ⇒ Object



17
18
19
# File 'lib/tumugi/target.rb', line 17

def log(msg)
  logger.info(msg)
end

#loggerObject



13
14
15
# File 'lib/tumugi/target.rb', line 13

def logger
  @logger ||= Tumugi.logger
end