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 CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.8
data/jumpstart.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jumpstart}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["i0n"]
@@ -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 !JumpStart.default_template_name.nil? || !JumpStart.default_template_name.empty?
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 File.exists?(FileUtils.join_paths(JumpStart.templates_path, @template_name, "/jumpstart_config/", "#{@template_name}.yml"))
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]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 8
9
+ version: 0.1.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - i0n