diff options
Diffstat (limited to 'gemtoo/lib/gemtoo.rb')
-rw-r--r-- | gemtoo/lib/gemtoo.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gemtoo/lib/gemtoo.rb b/gemtoo/lib/gemtoo.rb new file mode 100644 index 0000000..b60ae42 --- /dev/null +++ b/gemtoo/lib/gemtoo.rb @@ -0,0 +1,26 @@ +require 'rubygems/installer' +require 'rubygems/config_file' + +class Gemtoo + VERSION = '1.0.0' + + + def self.src_unpack(name, options) + inst = Gem::Installer.new(name, options) + inst.extract_files + end + + + def self.src_compile(name, options) + inst = Gem::Installer.new(name, options) + inst.build_extensions + end + + def self.src_install(name, options) + inst = Gem::Installer.new(name, options) + inst.generate_bin + inst.write_spec + end + + +end |