Class: Nodectl::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/nodectl/log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path) ⇒ Log

Returns a new instance of Log.



5
6
7
8
# File 'lib/nodectl/log.rb', line 5

def initialize(name, path)
  @name = name
  @path = path
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/nodectl/log.rb', line 2

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/nodectl/log.rb', line 3

def path
  @path
end

Instance Method Details

#instance_path(service) ⇒ Object



10
11
12
# File 'lib/nodectl/log.rb', line 10

def instance_path(service)
  service.source_path.join(path)
end