nali 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/nali/generator.rb +3 -8
- data/lib/nali/version.rb +1 -1
- metadata +1 -1
data/lib/nali/generator.rb
CHANGED
@@ -3,21 +3,16 @@ module Nali
|
|
3
3
|
class Generator
|
4
4
|
|
5
5
|
def initialize( args )
|
6
|
-
if
|
6
|
+
if args.first == 'new'
|
7
7
|
if args[1] then create_application args[1]
|
8
8
|
else puts 'Enter a name for the application' end
|
9
|
-
|
10
|
-
|
11
|
-
if [ 'm', 'model' ].include?( args.first )
|
9
|
+
elsif [ 'm', 'model' ].include?( args.first )
|
12
10
|
if args[1] then create_model args[1]
|
13
11
|
else puts 'Enter a name for the model' end
|
14
|
-
|
15
|
-
|
16
|
-
if [ 'v', 'view' ].include?( args.first )
|
12
|
+
elsif [ 'v', 'view' ].include?( args.first )
|
17
13
|
if args[1] then create_view args[1]
|
18
14
|
else puts 'Enter a name for the view' end
|
19
15
|
end
|
20
|
-
|
21
16
|
end
|
22
17
|
|
23
18
|
def create_application( name )
|
data/lib/nali/version.rb
CHANGED