profig 0.02 → 0.03

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ def self.run(os, sections)
23
23
  sections.each do |section|
24
24
  type = section.type
25
25
  section_handler_name = "handle_#{type}_section_for_#{os}"
26
- #item_handler_name = "handle_#{type}_item_for_#{os}"
26
+ #item_handler_name = "handle_#{type}_for_#{os}"
27
27
  item_handler_name = "handle_#{os}_#{type}"
28
28
 
29
29
  # first check if there's a section handler for this type
@@ -0,0 +1,11 @@
1
+
2
+ module Profig
3
+
4
+
5
+ def self.handle_egg_item(egg_name, opts)
6
+ cmd = "pip install #{egg_name}"
7
+ system cmd
8
+ end
9
+
10
+
11
+ end # module
@@ -1,5 +1,6 @@
1
1
  require 'profig/linux'
2
2
  require 'profig/debian'
3
+ require 'profig/python'
3
4
 
4
5
  module Profig
5
6
 
@@ -29,6 +30,10 @@ def self.handle_ubuntu_deb(pkg_name, opts)
29
30
  Profig.handle_debian_deb(pkg_name, opts)
30
31
  end
31
32
 
33
+ def self.handle_ubuntu_egg(egg_name, opts)
34
+ Profig.handle_egg_item(egg_name, opts)
35
+ end
36
+
32
37
  def self.handle_ubuntu_dir(name, opts)
33
38
  Profig.handle_linux_dir(name, opts)
34
39
  end
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.02"
8
+ - 3
9
+ version: "0.03"
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: 2010-09-23 00:00:00 -04:00
17
+ date: 2010-10-01 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -33,6 +33,7 @@ files:
33
33
  - lib/profig/ubuntu.rb
34
34
  - lib/profig/config.rb
35
35
  - lib/profig/main.rb
36
+ - lib/profig/python.rb
36
37
  - lib/profig/linux.rb
37
38
  has_rdoc: true
38
39
  homepage: http://github.com/mdg/profig