Sha256: 8f51d152633a9977f14c2d853613b37e4587c90b461e1d2ec205adca4d26dc44
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
#!/usr/bin/env ruby require 'thor' require 'gamebox' def print_version puts "Gamebox #{Gamebox::VERSION::STRING}" end if ARGV.include?('-v') || ARGV.include?('--version') print_version exit 0 end class GameboxThorCommand < Thor include Thor::Actions def self.source_root File.join(File.dirname(__FILE__), "../templates/") end desc "new PATH", "Generates a new gamebox game at PATH." def new(*args) game_name = args[0] self.destination_root = game_name if Gamebox::VERSION::RC > 0 @gamebox_version = Gamebox::VERSION::STRING else @gamebox_version = "~> "+[Gamebox::VERSION::MAJOR, Gamebox::VERSION::MINOR, '0'].join('.') end directory "app", "." end end GameboxThorCommand.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamebox-0.4.0.rc5 | bin/gamebox |