Sha256: 3979937c49341d99570f23584ecfe0dc8b661e2fa0c362f30d9ffbab37030e27

Contents?: true

Size: 793 Bytes

Versions: 10

Compression:

Stored size: 793 Bytes

Contents

#!/usr/bin/env ruby

require 'pathname'

source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
$LOAD_PATH << source_path

require 'kazan'

if ARGV.empty?
  puts "Please provide an arguments"
  puts
  exit 0
elsif ['-v', '--version'].include? ARGV[0]
  puts Kazan::VERSION
  exit 0
elsif ['ruby'].include?(ARGV[0]) && ['-v', '--version'].include?(ARGV[1])
  puts Kazan::RUBY_PROJECT_VERSION
  exit 0
elsif ['rails'].include?(ARGV[0]) && ['-v', '--version'].include?(ARGV[1])
  puts Kazan::RAILS_VERSION
  exit 0
end

templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
Kazan::AppGenerator.source_root templates_root
Kazan::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root

Kazan::AppGenerator.start

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kazan-0.5.0 bin/kazan
kazan-0.4.0 bin/kazan
kazan-0.3.1 bin/kazan
kazan-0.3.0 bin/kazan
kazan-0.2.4 bin/kazan
kazan-0.2.3 bin/kazan
kazan-0.2.2 bin/kazan
kazan-0.2.1 bin/kazan
kazan-0.2.0 bin/kazan
kazan-0.1.0 bin/kazan