Sha256: bb570513aedfa9efbb46d0627e050770d911a8785a1266f66502ae589ae099b4

Contents?: true

Size: 657 Bytes

Versions: 13

Compression:

Stored size: 657 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

ENV['RAILS_ENV'] ||= 'production'

unless ARGV.first == 'new'
  exec "rake zena:#{ARGV.join(' ')}"
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[1]

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

13 entries across 13 versions & 1 rubygems

Version Path
zena-1.2.8 bin/zena
zena-1.2.7 bin/zena
zena-1.2.6 bin/zena
zena-1.2.5 bin/zena
zena-1.2.4 bin/zena
zena-1.2.3 bin/zena
zena-1.2.2 bin/zena
zena-1.2.1 bin/zena
zena-1.2.0 bin/zena
zena-1.1.3 bin/zena
zena-1.1.2 bin/zena
zena-1.1.1 bin/zena
zena-1.1.0 bin/zena