Module: C3D::EyeOfZorax

Extended by:
EyeOfZorax
Included in:
EyeOfZorax
Defined in:
lib/c3d/util/watch.rb

Instance Method Summary collapse

Instance Method Details

#ignore(contract) ⇒ Object



19
20
21
22
23
# File 'lib/c3d/util/watch.rb', line 19

def ignore contract
  ignore_file = ENV['IGNORE_FILE']
  ignore = loader ignore_file
  adder ignored, ignore_file, contract
end

#subscribe(contract) ⇒ Object



7
8
9
10
11
# File 'lib/c3d/util/watch.rb', line 7

def subscribe contract
  subscribe_file = ENV['WATCH_FILE']
  subscribed = loader subscribe_file
  adder subscribed, subscribe_file, contract
end

#unignore(contract) ⇒ Object



25
26
27
28
29
# File 'lib/c3d/util/watch.rb', line 25

def unignore contract
  ignore_file = ENV['IGNORE_FILE']
  ignore = loader ignore_file
  remover ignored, ignore_file, contract
end

#unsubscribe(contract) ⇒ Object



13
14
15
16
17
# File 'lib/c3d/util/watch.rb', line 13

def unsubscribe contract
  subscribe_file = ENV['WATCH_FILE']
  subscribed = loader subscribe_file
  remover subscribed, subscribe_file, contract
end