Sha256: 1c823c17b9398e844d4b63fc58cb4bee48839d4029ad5188d82a12bac2b6cec9

Contents?: true

Size: 997 Bytes

Versions: 9

Compression:

Stored size: 997 Bytes

Contents

# This makes sure the bundled gems are in our $LOAD_PATH
#require File.expand_path(File.join(File.dirname(__FILE__) + "/..", 'vendor', 'gems', 'environment'))

# This actually requires the bundled gems
#Bundler.require_env

require 'AWS'
require 'net/ssh'
require 'json'
require 'singleton'
require File.dirname(__FILE__) + '/hugo/mixin/params_validate'
require File.dirname(__FILE__) + '/hugo/cloud'
require File.dirname(__FILE__) + '/hugo/balancer'
require File.dirname(__FILE__) + '/hugo/database'
require File.dirname(__FILE__) + '/hugo/app'
require File.dirname(__FILE__) + '/hugo/aws/rds'
require File.dirname(__FILE__) + '/hugo/aws/elb'
require File.dirname(__FILE__) + '/hugo/aws/ec2'

module Hugo; end

class Hugo::Suite
  include Singleton

  def initialize
  end
  
  def cloud(name="DEFAULT", &block)
    cloud = Hugo::Cloud.instance
    cloud.name name
    cloud.instance_eval(&block) if block_given?   
  end
end


def Hugo(&block) 
  Hugo::Suite.instance.instance_eval(&block)
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hugo-0.2.0 lib/hugo.rb
hugo-0.1.11 lib/hugo.rb
hugo-0.1.10 lib/hugo.rb
hugo-0.1.9 lib/hugo.rb
hugo-0.1.6 lib/hugo.rb
hugo-0.1.5 lib/hugo.rb
hugo-0.1.4 lib/hugo.rb
hugo-0.1.2 lib/hugo.rb
hugo-0.1.1 lib/hugo.rb