Class: Oncall::Core::Wrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/oncall/core/wrapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Wrapper

Returns a new instance of Wrapper.



6
7
8
# File 'lib/oncall/core/wrapper.rb', line 6

def initialize(file)
  @file = file
end

Instance Method Details

#run(reporter) ⇒ Object



10
11
12
# File 'lib/oncall/core/wrapper.rb', line 10

def run(reporter)
  Oncall::DSL::Group.new.instance_eval File.read(@file)
end