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 +4 -4
- data/lib/pandoras_box/box.rb +4 -0
- data/lib/pandoras_box/boxes/bash_import_box.rb +9 -2
- data/lib/pandoras_box/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c99444277dc17b919b00e4b8fd5240500d50a52
|
4
|
+
data.tar.gz: da549a20890d7862ca60ab31a737859ea669affa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd1267644a058f079cc8575d60b370784c9110a00ee9765807f3a4f3928f149348d89821cbc596b659bfb5732e311a732a5f5242822e0fe3e1b9f8150fb3058c
|
7
|
+
data.tar.gz: 4cf798fe0e40e918b3898244b9210cf45250c41737254d4afb763db995a50fa2134be8246f545630c903d287413c2f3f36ea3b058b5bfad3c69636067cc3938a
|
data/lib/pandoras_box/box.rb
CHANGED
@@ -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
|
6
|
-
@@description
|
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
|
data/lib/pandoras_box/version.rb
CHANGED