Class: Consul::Async::ConsulTemplateRenderedResult

Inherits:
Object
  • Object
show all
Defined in:
lib/consul/async/consul_template_render.rb

Overview

Result of the rendering of a template .ready? will tell if rendering is full or partial

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_file, output_file, hot_reloaded, was_success, modified, last_result) ⇒ ConsulTemplateRenderedResult

Returns a new instance of ConsulTemplateRenderedResult.



10
11
12
13
14
15
16
17
# File 'lib/consul/async/consul_template_render.rb', line 10

def initialize(template_file, output_file, hot_reloaded, was_success, modified, last_result)
  @template_file = template_file
  @output_file = output_file
  @hot_reloaded = hot_reloaded
  @ready = was_success
  @modified = modified
  @last_result = last_result
end

Instance Attribute Details

#hot_reloadedObject (readonly)

Returns the value of attribute hot_reloaded.



9
10
11
# File 'lib/consul/async/consul_template_render.rb', line 9

def hot_reloaded
  @hot_reloaded
end

#last_resultObject (readonly)

Returns the value of attribute last_result.



9
10
11
# File 'lib/consul/async/consul_template_render.rb', line 9

def last_result
  @last_result
end

#modifiedObject (readonly)

Returns the value of attribute modified.



9
10
11
# File 'lib/consul/async/consul_template_render.rb', line 9

def modified
  @modified
end

#output_fileObject (readonly)

Returns the value of attribute output_file.



9
10
11
# File 'lib/consul/async/consul_template_render.rb', line 9

def output_file
  @output_file
end

#readyObject (readonly)

Returns the value of attribute ready.



9
10
11
# File 'lib/consul/async/consul_template_render.rb', line 9

def ready
  @ready
end

#template_fileObject (readonly)

Returns the value of attribute template_file.



9
10
11
# File 'lib/consul/async/consul_template_render.rb', line 9

def template_file
  @template_file
end

Instance Method Details

#ready?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/consul/async/consul_template_render.rb', line 19

def ready?
  @ready
end