pario 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pario/cli.rb +3 -3
- data/lib/pario/version.rb +1 -1
- metadata +3 -3
data/lib/pario/cli.rb
CHANGED
@@ -31,7 +31,7 @@ module Pario
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def valid_pario_command?
|
34
|
-
%w{
|
34
|
+
%w{new add play -v}.include? @command
|
35
35
|
end
|
36
36
|
|
37
37
|
def process_command
|
@@ -40,7 +40,7 @@ module Pario
|
|
40
40
|
end
|
41
41
|
|
42
42
|
# Create a game
|
43
|
-
def
|
43
|
+
def new
|
44
44
|
create_directories
|
45
45
|
create_base_files
|
46
46
|
copy_files
|
@@ -136,7 +136,7 @@ game_template.result(binding)
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def create_directories
|
139
|
-
folder_name = game_name.gsub(/(.)([A-Z])/,'\1_\2').downcase
|
139
|
+
folder_name = game_name.gsub(/(.)([A-Z])/,'\1_\2').downcase
|
140
140
|
Dir.mkdir(folder_name) unless File.directory?(folder_name)
|
141
141
|
Dir.chdir(folder_name)
|
142
142
|
Directories.each do |sub_folder|
|
data/lib/pario/version.rb
CHANGED
metadata
CHANGED