Sha256: 8b431f1cff1ea1c84075d711cb3fa0140ebafdd7e0ecb6c1279f795391879a2d

Contents?: true

Size: 1.81 KB

Versions: 1

Compression:

Stored size: 1.81 KB

Contents

require 'rubygems'
require 'active_support'
require 'action_controller'
require 'action_controller/routing'

require File.join([File.dirname(__FILE__), 'mgflotilla'])

require File.join([File.dirname(__FILE__), 'mountain-goat/controllers/mountain_goat/mountain_goat_controller'])
require File.join([File.dirname(__FILE__), 'mountain-goat/controllers/mountain_goat/mountain_goat_metrics_controller'])
require File.join([File.dirname(__FILE__), 'mountain-goat/controllers/mountain_goat/mountain_goat_metric_variants_controller'])
require File.join([File.dirname(__FILE__), 'mountain-goat/controllers/mountain_goat/mountain_goat_converts_controller'])
require File.join([File.dirname(__FILE__), 'mountain-goat/controllers/mountain_goat/mountain_goat_rallies_controller'])

require File.join([File.dirname(__FILE__), 'mountain-goat/metric_tracking'])
require File.join([File.dirname(__FILE__), 'mountain-goat/models/metric'])
require File.join([File.dirname(__FILE__), 'mountain-goat/models/metric_variant'])
require File.join([File.dirname(__FILE__), 'mountain-goat/models/convert'])
require File.join([File.dirname(__FILE__), 'mountain-goat/models/convert_meta_type'])
require File.join([File.dirname(__FILE__), 'mountain-goat/models/cs_meta'])
require File.join([File.dirname(__FILE__), 'mountain-goat/models/ci_meta'])
require File.join([File.dirname(__FILE__), 'mountain-goat/models/rally'])

#$VERBOSE = nil
#Dir["#{Gem.searcher.find('mountain-goat').full_gem_path}/lib/tasks/*.rake"].each { |ext| load ext }

class MountainGoat
  def self.add_meta_option(option, &block)
    @@meta_options = {} if !defined?(@@meta_options)
    @@meta_options ||= {}
    @@meta_options.merge!({ option => block })
  end
  
  def self.get_meta_options
    return {} if !defined?(@@meta_options)
    @@meta_options || {}
  end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mountain-goat-0.1.8 lib/mountain-goat.rb