Sha256: a375e9059b54a9032d8989203696f5c5747628be00061d87014834bb237ca3d1
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
# = TITLE: # # Utils # # = COPYING: # # Copyright (c) 2007 Tiger Ops # # This file is part of the Reap program. # # Reap is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Reap is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Reap. If not, see <http://www.gnu.org/licenses/>. require 'yaml' # make it generally available require 'rbconfig' # replace with facets/system? require 'quarry/support/options' require 'quarry/utils/fileutils' require 'quarry/utils/shellutils' require 'quarry/utils/netutils' #require 'reap/tasksystem' module Quarry class Build include ShellUtils include FileUtils include NetUtils def initialize(*configs) configs.each do |config| next unless config config.each do |key,value| send("#{key}=", value) if respond_to?("#{key}=") end end end def initialize(options=nil) options ||= {} options.each do |k,v| k = k.to_s.downcase send("#{k}=", v) if respond_to?("#{k}=") end end # General options. attr_writer :dryrun, :trace, :force, :verbose def dryrun? ; @dryrun ; end def trace? ; @trace ; end def force? ; @force ; end def verbose? ; @verbose ; end def debug? ; @debug ; end alias_method :noharm=, :dryrun= alias_method :noharm?, :dryrun? def options { :dryrun => dryrun?, :trace => trace?, :force => force?, :verbose => verbose?, :debug => debug? } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quarry-0.4.0 | work/deprecated/build.rb |