Sha256: 9e377814a671419e86a68933c4203ee64e5e011f9e92ad8e6567bb6da27db61c
Contents?: true
Size: 824 Bytes
Versions: 2
Compression:
Stored size: 824 Bytes
Contents
#!/usr/bin/env ruby begin require 'rubygems' rescue LoadError # no rubygems to load, so we fail silently end require 'optparse' @options = {} OptionParser.new do |opts| opts.banner = "Usage: #{$0} [options] [args]" opts.on("-A", "--apply-to DIRECTORY", "Create a minimal set of scripts and recipes", "for use with capistrano to configure servers." ) { |value| @options[:apply_to] = value } opts.on("-n", "--name APPLICATION_NAME", "Name of application." ) { |value| @options[:application] = value } opts.on("-d", "--domain DOMAIN_NAME", "Domain name for application." ) { |value| @options[:domain] = value } if ARGV.empty? puts opts exit else opts.parse!(ARGV) end end require 'mmmultiworks/generators/loader' Mmmultiworks::Generators::RailsLoader.load! @options
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mmmultiworks-0.1.0 | bin/mmmultiworks |
mmmultiworks-0.2.0 | bin/mmmultiworks |