Sha256: ba75a4ba27b91cb9ba31894a440aa3e76b20e4962728b832ec72aead808b32d2
Contents?: true
Size: 907 Bytes
Versions: 2
Compression:
Stored size: 907 Bytes
Contents
module Ing class Generator < Task opt :dest, "Destination root", :type => :string opt :source, "Source root", :type => :string opt :verbose, "Run verbosely by default" opt :force, "Overwrite files that already exist" opt :pretend, "Run but do not make any changes" opt :revoke, "Revoke action (not available for all generators)" opt :quiet, "Suppress status output" opt :skip, "Skip files that already exist" include Ing::Files # Destination root for filesystem actions def destination_root File.expand_path(options[:dest]) end # Source root for filesystem actions def source_root File.expand_path(options[:source]) end def initialize(options) super validate_option_exists :dest, 'destination_root' validate_option_exists :source, 'source_root' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ing-0.2.2 | lib/ing/generator.rb |
ing-0.2.1 | lib/ing/generator.rb |