Sha256: 9b6c999820696781cd2abf5abf6a0aaca67c55744dfa1d10c8fd8226e27716f9
Contents?: true
Size: 557 Bytes
Versions: 9
Compression:
Stored size: 557 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'zena/info' if %w(--version -v).include? ARGV.first puts "zena #{Zena::VERSION}" exit(0) end require 'rails/version' require 'rails_generator' require 'rails_generator/scripts/generate' template_path = File.join(Zena::ROOT, 'lib', 'zena', 'deploy', 'template.rb') args = ["-m", template_path] args << ARGV.first puts "Generating zena application from template #{template_path}" Rails::Generator::Base.use_application_sources! Rails::Generator::Scripts::Generate.new.run( args, :generator => 'app' )
Version data entries
9 entries across 9 versions & 1 rubygems