Class: DRep::DRepExecuter

Inherits:
Object show all
Includes:
DRepRunnable
Defined in:
lib/drep/core/drep_executer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment, providers, templates) ⇒ DRepExecuter

Returns a new instance of DRepExecuter.



41
42
43
44
45
46
47
48
49
50
# File 'lib/drep/core/drep_executer.rb', line 41

def initialize(environment, providers, templates)
  unless environment.nil?
    @env = environment
  else
    raise(ArgumentError, "Invalid environment", caller())
  end

  @providers = providers
  @templates = templates
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



36
37
38
# File 'lib/drep/core/drep_executer.rb', line 36

def env
  @env
end

#providersObject (readonly)

Returns the value of attribute providers.



38
39
40
# File 'lib/drep/core/drep_executer.rb', line 38

def providers
  @providers
end

#templatesObject (readonly)

Returns the value of attribute templates.



39
40
41
# File 'lib/drep/core/drep_executer.rb', line 39

def templates
  @templates
end

Instance Method Details

#runObject



52
53
54
# File 'lib/drep/core/drep_executer.rb', line 52

def run()
  perform_tasks()
end