Sha256: 26cc9d768ae2029e1993cce11ea788ad9dc4482b2bead54e1c78d9029910880b
Contents?: true
Size: 523 Bytes
Versions: 14
Compression:
Stored size: 523 Bytes
Contents
require 'pathname' require 'yaml' env_file = File.join(Pathname.new(__FILE__).parent.parent, 'config', 'application.yml') YAML.load(File.open(env_file)).each do |key, value| ENV[key.to_s] = value.to_s end if File.exists?(env_file) require 'epom' timestamp = Time.now.to_i * 1000 body_params = { :hash => Epom.create_hash(Epom.create_hash(ENV['password']), timestamp), :timestamp => timestamp, :username => ENV['username'], } url_params = {} response = Epom::Site.get_sites(url_params, body_params) puts response
Version data entries
14 entries across 14 versions & 1 rubygems