profig 0.09 → 0.10
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.
- data/lib/profig/install.rb +24 -8
- data/lib/profig/linux.rb +9 -0
- data/lib/profig/main.rb +1 -2
- metadata +4 -4
data/lib/profig/install.rb
CHANGED
@@ -9,26 +9,42 @@ def self.handle_cabal(pkg_name, opts)
|
|
9
9
|
system cmd
|
10
10
|
end
|
11
11
|
|
12
|
-
def self.
|
13
|
-
cmd = "apt-get install -y
|
12
|
+
def self.handle_deb_set(pkgs)
|
13
|
+
cmd = "apt-get install -y"
|
14
|
+
pkgs.each do |pkg|
|
15
|
+
cmd += ' '+ pkg.name
|
16
|
+
end
|
14
17
|
system cmd
|
15
18
|
end
|
16
19
|
|
17
|
-
def self.
|
18
|
-
cmd = "pip install
|
20
|
+
def self.handle_egg_set(eggs)
|
21
|
+
cmd = "pip-python install"
|
22
|
+
eggs.each do |egg|
|
23
|
+
cmd += ' '+ egg.name
|
24
|
+
end
|
19
25
|
system cmd
|
20
26
|
end
|
21
27
|
|
22
|
-
def self.
|
23
|
-
cmd = "gem install
|
28
|
+
def self.handle_gem_set(gems)
|
29
|
+
cmd = "gem install"
|
30
|
+
gems.each do |gem|
|
31
|
+
cmd += ' '+ gem.name
|
32
|
+
end
|
24
33
|
system cmd
|
25
34
|
end
|
26
35
|
|
27
|
-
def self.
|
28
|
-
cmd = "yum install -y
|
36
|
+
def self.handle_rpm_set(rpms)
|
37
|
+
cmd = "yum install -y"
|
38
|
+
rpms.each do |rpm|
|
39
|
+
cmd += ' '+ rpm.name
|
40
|
+
end
|
29
41
|
system cmd
|
30
42
|
end
|
31
43
|
|
44
|
+
def self.handle_yum_set(rpms)
|
45
|
+
self.handle_rpm_set(rpms)
|
46
|
+
end
|
47
|
+
|
32
48
|
|
33
49
|
# Source Installers
|
34
50
|
#
|
data/lib/profig/linux.rb
CHANGED
data/lib/profig/main.rb
CHANGED
@@ -22,8 +22,7 @@ def self.run(sections)
|
|
22
22
|
|
23
23
|
sections.each do |section|
|
24
24
|
type = section.type
|
25
|
-
section_handler_name = "handle_#{type}
|
26
|
-
#item_handler_name = "handle_#{type}_for_#{os}"
|
25
|
+
section_handler_name = "handle_#{type}_set"
|
27
26
|
item_handler_name = "handle_#{type}"
|
28
27
|
|
29
28
|
# first check if there's a section handler for this type
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: profig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 10
|
9
|
+
version: "0.10"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Matthew Graham
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-08-
|
17
|
+
date: 2011-08-11 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|