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.



4
5
6
# File 'lib/oncall/core/wrapper.rb', line 4

def initialize(file)
  @file = file
end

Instance Method Details

#run(reporter) ⇒ Object



8
9
10
# File 'lib/oncall/core/wrapper.rb', line 8

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