Sha256: fd5cbc235b668edba365708362a08dc6cf0ef4ecacf796f646ab3c980e6725b1
Contents?: true
Size: 837 Bytes
Versions: 1
Compression:
Stored size: 837 Bytes
Contents
#!/usr/bin/env ruby require 'fileutils' require 'rubygems' require 'rainbow' if !ARGV[0] puts "Directory name required.".foreground(:red) exit 1 end if File.directory?(ARGV[0]) puts "You can't overwrite an existing directory.".foreground(:red) exit 1 end puts "Copying skel files...".foreground(:green) FileUtils.cp_r File.expand_path(File.join(File.dirname(__FILE__), '..', 'skel')), ARGV[0] puts "Making config directories...".foreground(:green) FileUtils.mkdir_p File.join(ARGV[0], 'source') FileUtils.mkdir_p File.join(ARGV[0], 'conf.d-original') FileUtils.mkdir_p File.join(ARGV[0], 'conf.d') print "Complete! ".bright.foreground(:green) print "cd #{ARGV[0]}".bright.foreground(:yellow) print " and run ".foreground(:green) print "bundle exec rake -T ".bright.foreground(:yellow) puts "to get started.".foreground(:green)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apache-config-generator-0.2.7 | bin/apache-configurator |