Sha256: 0e80af3919b61b75a958443f01c1e2053434a86bc63105760779986c3a4e29d6
Contents?: true
Size: 750 Bytes
Versions: 3
Compression:
Stored size: 750 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift(File.join(File.dirname(__FILE__))) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) require 'rubygems' require 'sinatra' require 'eventmachine' require 'readline' require 'redis' require 'stringio' require 'yaml' require 'haml' require 'optparse' require 'duino' require 'subduino/parse' config = { 'username' => nil, 'password' => nil } begin config.merge!(YAML.load(File.read(ARGV[0]))) DUINO_CONFIG = config rescue DUINO_CONFIG = config end DUINO = Duino.new(config) # Require app require "messenger" include Messenger require "app" Sinatra::Application.public = File.dirname(__FILE__) + "/../public" Sinatra::Application.views = File.dirname(__FILE__) + "/../views"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
subduino-0.2.1 | webapp/lib/environment.rb |
subduino-0.2.0 | webapp/lib/environment.rb |
subduino-0.1.0 | webapp/lib/environment.rb |