Sha256: 6240ad057c7597812a18a910ff2a88c9b3c4d6445acbafc28204c3aa3bd93d88

Contents?: true

Size: 812 Bytes

Versions: 19

Compression:

Stored size: 812 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 'deprec/generators/loader'
Deprec::Generators::RailsLoader.load! @options

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
deprec-1.1.0 bin/deprec
deprec-1.2.0 bin/deprec
deprec-1.2.1 bin/deprec
deprec-1.2.2 bin/deprec
deprec-1.2.3 bin/deprec
deprec-1.3.0 bin/deprec
deprec-1.3.1 bin/deprec
deprec-1.4.1 bin/deprec
deprec-1.4.2 bin/deprec
deprec-1.5.0 bin/deprec
deprec-1.5.1 bin/deprec
deprec-1.6.0 bin/deprec
deprec-1.7.0 bin/deprec
deprec-1.7.1 bin/deprec
deprec-1.8.0 bin/deprec
deprec-1.9.0 bin/deprec
deprec-1.9.1 bin/deprec
deprec-1.9.2 bin/deprec
deprec-1.9.3 bin/deprec