pandoras_box 0.0.3 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6886e99dd63f1f02f489b5ebbec644a1a5120d46
4
- data.tar.gz: 7fa3b0dbbc8a4848ea07eb07a78234c75dfc3288
3
+ metadata.gz: 5c99444277dc17b919b00e4b8fd5240500d50a52
4
+ data.tar.gz: da549a20890d7862ca60ab31a737859ea669affa
5
5
  SHA512:
6
- metadata.gz: 83b724c872fa808176d0f5deafd8c159f856fab102980ddf98e3651869542effc203109569d3d330dbcb950d01e6010122d95ff96d81289e98709e75a7a6db13
7
- data.tar.gz: c039fe679c2b72b811be0c5fedf5faedc58b53b5dc10ea317aeeb2ab6ed18dc4efa57e1c3d2232eea574ff6a7653eeaacda06ee117c93c893369055975d40352
6
+ metadata.gz: cd1267644a058f079cc8575d60b370784c9110a00ee9765807f3a4f3928f149348d89821cbc596b659bfb5732e311a732a5f5242822e0fe3e1b9f8150fb3058c
7
+ data.tar.gz: 4cf798fe0e40e918b3898244b9210cf45250c41737254d4afb763db995a50fa2134be8246f545630c903d287413c2f3f36ea3b058b5bfad3c69636067cc3938a
@@ -17,6 +17,7 @@ class Box
17
17
  attr_accessor :download_directory
18
18
 
19
19
  def install
20
+ pre_steps
20
21
  FileManager.generate_basic_folders
21
22
  FileManager.current_box = @name
22
23
  FileManager.download_box(@download_repo)
@@ -24,6 +25,9 @@ class Box
24
25
  FileManager.symlink_all(@name, @download_repo)
25
26
  end
26
27
 
28
+ def pre_steps
29
+ end
30
+
27
31
  def custom_install_steps
28
32
  end
29
33
 
@@ -2,10 +2,16 @@ require 'pandoras_box/box'
2
2
  require 'fileutils'
3
3
 
4
4
  class BashImportBox < Box
5
- @@name = 'default_bash2zsh'
6
- @@description = 'Bash -> zsh'
5
+ @@name = 'default_bash2zsh'
6
+ @@description = 'Bash -> zsh'
7
7
  @@download_repo = 'hunterboerner/Boxes'
8
8
 
9
+ def pre_steps
10
+ unless system('zsh --version')
11
+ abort('ZSH is not installed! Install it!')
12
+ end
13
+ end
14
+
9
15
  def custom_install_steps
10
16
  FileManager.generate_from_array(['zsh/modules/'])
11
17
  %w(bashrc bash_profile).each do |file|
@@ -16,4 +22,5 @@ class BashImportBox < Box
16
22
  end
17
23
  `chsh -s /bin/zsh`
18
24
  end
25
+
19
26
  end
@@ -1,3 +1,3 @@
1
1
  class PandorasBox
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandoras_box
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theron Boerner