jumpstart 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/jumpstart.gemspec +1 -1
- data/lib/jumpstart/base.rb +4 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/jumpstart.gemspec
CHANGED
data/lib/jumpstart/base.rb
CHANGED
@@ -25,7 +25,7 @@ module JumpStart
|
|
25
25
|
@project_name = args.shift.dup if args[0] != nil
|
26
26
|
if args[0] != nil
|
27
27
|
@template_name = args.shift.dup
|
28
|
-
elsif
|
28
|
+
elsif JumpStart.default_template_name.nil? != nil
|
29
29
|
@template_name = JumpStart.default_template_name
|
30
30
|
end
|
31
31
|
# set instance variable @template_path as the directory to read templates from.
|
@@ -40,7 +40,9 @@ module JumpStart
|
|
40
40
|
|
41
41
|
# Look into moving @install_path or refactoring to make setting this variable easier.
|
42
42
|
def set_config_file_options
|
43
|
-
if
|
43
|
+
if @template_name.nil?
|
44
|
+
jumpstart_menu
|
45
|
+
elsif File.exists?(FileUtils.join_paths(JumpStart.templates_path, @template_name, "/jumpstart_config/", "#{@template_name}.yml"))
|
44
46
|
@config_file = YAML.load_file(FileUtils.join_paths(JumpStart.templates_path, @template_name, "/jumpstart_config/", "#{@template_name}.yml"))
|
45
47
|
@install_command ||= @config_file[:install_command]
|
46
48
|
@install_command_args ||= @config_file[:install_command_args]
|