Sha256: f81159dab9440f3fff0b0f8a987c2763df51418a72effb58637978ea3d9d47da
Contents?: true
Size: 966 Bytes
Versions: 7
Compression:
Stored size: 966 Bytes
Contents
class Moonwalkair class Generator class Application class << self def run!(*arguments) options = Moonwalkair::Generator::Options.new(arguments) if options[:invalid_argument] $stderr.puts options[:invalid_argument] options[:show_help] = true end if options[:show_help] $stderr.puts options.opts return 1 end if options[:project_name].nil? || options[:project_name].squeeze.strip == "" $stderr.puts options.opts return 1 end begin generator = Moonwalkair::Generator.new(options) generator.run return 0 rescue Moonwalkair::FileAlreadyExist $stderr.puts "The directory #{options[:project_name]} already exists. Maybe move it out of the way before continuing?" return 1 end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems