Class: Dubious::CLI::Init

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/dubious/cli/init.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.subcommand_help(*args) ⇒ Object



14
15
16
17
18
19
# File 'lib/dubious/cli/init.rb', line 14

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

Instance Method Details

#cp_dubious_jarObject



25
26
27
# File 'lib/dubious/cli/init.rb', line 25

def cp_dubious_jar
  copy_file '../../../dubious.jar', "#{name}/WEB-INF/lib/dubious.jar"
end

#cp_mirahdatastore_jarObject



29
30
31
# File 'lib/dubious/cli/init.rb', line 29

def cp_mirahdatastore_jar
  copy_file '../../../../javalib/mirahdatastore.jar', "#{name}/WEB-INF/lib/mirahdatastore.jar"
end

#initObject



21
22
23
# File 'lib/dubious/cli/init.rb', line 21

def init
  directory '.', "#{name}/"
end