bin/zena in zena-0.15.2 vs bin/zena in zena-0.16.0
- old
+ new
@@ -1,11 +1,16 @@
#!/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}"