Sha256: 3c45a61fd9305e626f112c32ec4034e2ebff8d07b99f6c1ef5c103166b1730ae
Contents?: true
Size: 892 Bytes
Versions: 2
Compression:
Stored size: 892 Bytes
Contents
module Dubious module CLI class Init < Thor::Group include Thor::Actions argument :name, :required => true, :desc => "Name of the application/directory" source_root File.dirname(__FILE__)+"/../templates/base" no_tasks do def name= name @name = name.sub /\/$/,'' #remove trailing slash end end def self.subcommand_help *args %Q( Creates a new dubious project application structure in the NAME directory. Uses NAME as the appengine app name. ) end def init directory '.', "#{name}/" end def cp_dubious_jar copy_file '../../../dubious.jar', "#{name}/WEB-INF/lib/dubious.jar" end def cp_dubydatastore_jar copy_file '../../../../javalib/dubydatastore.jar', "#{name}/WEB-INF/lib/dubydatastore.jar" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dubious-0.0.2-java | lib/dubious/cli/init.rb |
dubious-0.0.1-java | lib/dubious/cli/init.rb |