Sha256: 78baab15fffe906d0fa4c5ee5b7a80cb73170f2461be71387a85f27552210fc2
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
module Sunzi class Dependency def self.all { 'linode' => { :require => 'linode', :version => '>= 0.7.7', }, 'highline' => { :require => 'highline', :version => '>= 1.6.11', }, 'route53' => { :require => 'route53', :version => '>= 0.2.1', }, } end def self.load(name) begin gem(name, all[name][:version]) require(all[name][:require]) rescue LoadError puts <<-EOS Dependency missing: #{name} To install the gem, issue the following command: gem install #{name} -v '#{all[name][:version]}' Please try again after installing the missing dependency. EOS exit 1 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sunzi-0.4.0 | lib/sunzi/dependency.rb |