shaddox 0.1.2 → 0.1.3
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/.gitignore +35 -11
- data/Gemfile.lock +19 -0
- data/lib/shaddox/installer.rb +9 -0
- data/lib/shaddox/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b7a05c48839e638572910bfa34968396ecd8a9b
|
|
4
|
+
data.tar.gz: dabf80421c58c6e77278b155cc7b9dff2f0d0642
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9109e512368a5647c51cee8032d14cee81381a92b0d3f542f63a9172642034982f77d9495658dd0bd38baec7d3b121a7fde67cc8fbf6bc9de1d0dd974f6fd84
|
|
7
|
+
data.tar.gz: afacf03337cddf9cc628488098597da847531f403cf5e586d69fdb2f7bb3b6ae78dd474fa61ee5ff6d0cb6a03edef5d21bf48d1d4d457e321be669aff0206561
|
data/.gitignore
CHANGED
|
@@ -1,15 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
# Created by https://www.gitignore.io
|
|
2
|
+
|
|
3
|
+
### Ruby ###
|
|
4
|
+
*.gem
|
|
5
|
+
*.rbc
|
|
6
|
+
/.config
|
|
5
7
|
/coverage/
|
|
6
|
-
/
|
|
8
|
+
/InstalledFiles
|
|
7
9
|
/pkg/
|
|
8
10
|
/spec/reports/
|
|
11
|
+
/test/tmp/
|
|
12
|
+
/test/version_tmp/
|
|
9
13
|
/tmp/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
|
|
15
|
+
## Specific to RubyMotion:
|
|
16
|
+
.dat*
|
|
17
|
+
.repl_history
|
|
18
|
+
build/
|
|
19
|
+
|
|
20
|
+
## Documentation cache and generated files:
|
|
21
|
+
/.yardoc/
|
|
22
|
+
/_yardoc/
|
|
23
|
+
/doc/
|
|
24
|
+
/rdoc/
|
|
25
|
+
|
|
26
|
+
## Environment normalisation:
|
|
27
|
+
/.bundle/
|
|
28
|
+
/vendor/bundle
|
|
29
|
+
/lib/bundler/man/
|
|
30
|
+
|
|
31
|
+
# for a library or gem, you might want to ignore these files since the code is
|
|
32
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
33
|
+
# Gemfile.lock
|
|
34
|
+
# .ruby-version
|
|
35
|
+
# .ruby-gemset
|
|
36
|
+
|
|
37
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
38
|
+
.rvmrc
|
|
39
|
+
|
data/Gemfile.lock
ADDED
data/lib/shaddox/installer.rb
CHANGED
|
@@ -5,6 +5,7 @@ module Shaddox
|
|
|
5
5
|
return AptInstaller.new(pvr) if pvr.availiable? "apt-get"
|
|
6
6
|
return BrewInstaller.new(pvr) if pvr.availiable? "brew"
|
|
7
7
|
return PacmanInstaller.new(pvr) if pvr.availiable? "pacman"
|
|
8
|
+
return YumInstaller.new(pvr) if pvr.availiable? "yum"
|
|
8
9
|
warn "Installer could not be automatically identified.", 1
|
|
9
10
|
require 'highline/import'
|
|
10
11
|
choose do |menu|
|
|
@@ -71,4 +72,12 @@ module Shaddox
|
|
|
71
72
|
end
|
|
72
73
|
end
|
|
73
74
|
|
|
75
|
+
class YumInstaller < Installer
|
|
76
|
+
def install(package)
|
|
77
|
+
return if installed?(package)
|
|
78
|
+
@pvr.exec("yum install #{package}")
|
|
79
|
+
raise "Could not install #{package}" unless installed?(package)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
74
83
|
end
|
data/lib/shaddox/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shaddox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- joshglendenning
|
|
@@ -35,6 +35,7 @@ files:
|
|
|
35
35
|
- ".gitignore"
|
|
36
36
|
- Doxfile
|
|
37
37
|
- Gemfile
|
|
38
|
+
- Gemfile.lock
|
|
38
39
|
- LICENSE.txt
|
|
39
40
|
- README.md
|
|
40
41
|
- bin/shaddox
|