Module: EfBeeLib

Defined in:
lib/ef-bee-lib.rb,
lib/ef-bee-lib/version.rb

Constant Summary collapse

PJS_DIR =
File.expand_path '../../phantomjs', __FILE__
POST_CMD =
File.expand_path '../../post.js', __FILE__
VERSION =
'0.0.2'
DATE =
'2016-07-25'

Class Method Summary collapse

Class Method Details

.post(msg) ⇒ Object



13
14
15
16
# File 'lib/ef-bee-lib.rb', line 13

def self.post(msg)
  setup
  Phantomjs.run POST_CMD, msg
end

.setupObject



8
9
10
11
# File 'lib/ef-bee-lib.rb', line 8

def self.setup
  Phantomjs.base_dir = PJS_DIR
  Phantomjs.path
end