Skip to content

Instantly share code, notes, and snippets.

@mraaroncruz
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mraaroncruz/9430844 to your computer and use it in GitHub Desktop.
Save mraaroncruz/9430844 to your computer and use it in GitHub Desktop.
mlted client repl with setup
#!/usr/bin/env ruby
require 'bundler/setup'
Bundler.require(:default, (ENV['RACK_ENV'] || :development))
require File.expand_path("../../lib/mlted_service_client", __FILE__)
require 'pry'
SERVER = "http://localhost:9090"
block = MltedService::Client::Block.new
files = Dir.glob("./resources/vids/*")
2.times do |n|
files.each_with_index do |f,i|
producer = MltedService::Client::Producer.new( n * (i + 1), f)
block << producer
end
end
block.save(SERVER)
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment