Sha256: acebf99ea4dbfbd41b9154aac25bf9333fc64ee3a363fb4a1eb36c9b7bdbb7e7
Contents?: true
Size: 559 Bytes
Versions: 4
Compression:
Stored size: 559 Bytes
Contents
module Fezzik def self.init(options={}) @options = options @target_destination = ENV["fezzik_destination"].to_sym rescue nil unless options[:tasks].nil? puts "Loading Fezzik tasks from #{@options[:tasks]}" Dir[File.join(Dir.pwd, "#{@options[:tasks]}/**/*.rake")].sort.each { |lib| import lib } end end # TODO: add domain override (through environment variable?) def self.destination(name, &block) block.call if name == @target_destination end def self.target_destination @target_destination ||= nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fezzik-0.6.3 | lib/fezzik/base.rb |
fezzik-0.6.2 | lib/fezzik/base.rb |
fezzik-0.6.1 | lib/fezzik/base.rb |
fezzik-0.6.0 | lib/fezzik/base.rb |