profig 0.03 → 0.04

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/python.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  module Profig
3
3
 
4
4
 
5
- def self.handle_egg_item(egg_name, opts)
5
+ def self.handle_egg(egg_name, opts)
6
6
  cmd = "pip install #{egg_name}"
7
7
  system cmd
8
8
  end
@@ -0,0 +1,11 @@
1
+
2
+ module Profig
3
+
4
+
5
+ def self.handle_gem(gem_name, opts)
6
+ cmd = "gem install #{gem_name}"
7
+ system cmd
8
+ end
9
+
10
+
11
+ end # module
data/lib/profig/ubuntu.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'profig/linux'
2
2
  require 'profig/debian'
3
3
  require 'profig/python'
4
+ require 'profig/ruby'
4
5
 
5
6
  module Profig
6
7
 
@@ -31,7 +32,11 @@ def self.handle_ubuntu_deb(pkg_name, opts)
31
32
  end
32
33
 
33
34
  def self.handle_ubuntu_egg(egg_name, opts)
34
- Profig.handle_egg_item(egg_name, opts)
35
+ Profig.handle_egg(egg_name, opts)
36
+ end
37
+
38
+ def self.handle_ubuntu_gem(gem_name, opts)
39
+ Profig.handle_gem(gem_name, opts)
35
40
  end
36
41
 
37
42
  def self.handle_ubuntu_dir(name, opts)
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: 13
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
9
- version: "0.03"
8
+ - 4
9
+ version: "0.04"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matthew Graham
@@ -32,6 +32,7 @@ files:
32
32
  - lib/profig/debian.rb
33
33
  - lib/profig/ubuntu.rb
34
34
  - lib/profig/config.rb
35
+ - lib/profig/ruby.rb
35
36
  - lib/profig/main.rb
36
37
  - lib/profig/python.rb
37
38
  - lib/profig/linux.rb