jumpstart 0.1.11 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -34,18 +34,21 @@ namespace :version do
34
34
  task :major do
35
35
  JumpStart::Setup.bump_version_major
36
36
  git_actions
37
+ rubygems_actions
37
38
  end
38
39
 
39
40
  desc "Bumps minor version number by 1"
40
41
  task :minor do
41
42
  JumpStart::Setup.bump_version_minor
42
43
  git_actions
44
+ rubygems_actions
43
45
  end
44
46
 
45
47
  desc "Bumps patch version number by 1"
46
48
  task :patch do
47
49
  JumpStart::Setup.bump_version_patch
48
50
  git_actions
51
+ rubygems_actions
49
52
  end
50
53
 
51
54
  end
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :jumpstart_version_major: 0
3
3
  :jumpstart_version_minor: 1
4
- :jumpstart_version_patch: 11
4
+ :jumpstart_version_patch: 13
@@ -515,6 +515,7 @@ module JumpStart
515
515
  puts "\n\n Exiting JumpStart...".purple
516
516
  puts "\n Goodbye!\n\n"
517
517
  puts "******************************************************************************************************************************************\n"
518
+ JumpStart::Setup.dump_jumpstart_setup_yaml
518
519
  exit
519
520
  end
520
521
 
@@ -2,28 +2,36 @@ module JumpStart
2
2
  class Setup
3
3
 
4
4
  class << self
5
- attr_accessor :templates_path, :default_template_name, :version_major, :version_minor, :version_patch
5
+ attr_accessor :default_template_name, :version_major, :version_minor, :version_patch
6
6
  end
7
7
 
8
- jumpstart_setup_yaml = YAML.load_file("#{JumpStart::CONFIG_PATH}/jumpstart_setup.yml")
9
- jumpstart_version_yaml = YAML.load_file("#{JumpStart::CONFIG_PATH}/jumpstart_version.yml")
8
+ @jumpstart_setup_yaml = YAML.load_file("#{JumpStart::CONFIG_PATH}/jumpstart_setup.yml")
9
+ @jumpstart_version_yaml = YAML.load_file("#{JumpStart::CONFIG_PATH}/jumpstart_version.yml")
10
10
 
11
- @version_major = jumpstart_version_yaml[:jumpstart_version_major]
12
- @version_minor = jumpstart_version_yaml[:jumpstart_version_minor]
13
- @version_patch = jumpstart_version_yaml[:jumpstart_version_patch]
14
-
11
+ @version_major = @jumpstart_version_yaml[:jumpstart_version_major]
12
+ @version_minor = @jumpstart_version_yaml[:jumpstart_version_minor]
13
+ @version_patch = @jumpstart_version_yaml[:jumpstart_version_patch]
15
14
 
15
+ @templates_path = @jumpstart_setup_yaml[:jumpstart_templates_path]
16
16
  # The path to the jumpstart templates directory.
17
17
  # Set as a module instance variable.
18
- @templates_path = jumpstart_setup_yaml[:jumpstart_templates_path]
18
+ def self.templates_path
19
+ if @templates_path.nil? || @templates_path.empty?
20
+ @templates_path = "#{JumpStart::ROOT_PATH}/jumpstart_templates"
21
+ else
22
+ @templates_path
23
+ end
24
+ end
25
+
26
+ def self.templates_path=(value)
27
+ @templates_path = value
28
+ end
29
+
19
30
  # sets the default template to use if it has not been passed as an argument.
20
31
  # Set as a module instance variable.
21
- @default_template_name = jumpstart_setup_yaml[:jumpstart_default_template_name]
32
+ @default_template_name = @jumpstart_setup_yaml[:jumpstart_default_template_name]
22
33
 
23
34
  # Set the jumpstart templates path back to default if it has not been set
24
- if @templates_path.nil? || @templates_path.empty?
25
- @templates_path = "#{JumpStart::ROOT_PATH}/jumpstart_templates"
26
- end
27
35
 
28
36
  # Method for writing to config/jumpstart_setup.yml
29
37
  def self.dump_jumpstart_setup_yaml
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 11
9
- version: 0.1.11
8
+ - 13
9
+ version: 0.1.13
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ian Alexander Wood (i0n)