Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!c:/ruby/bin/ruby.exe
- require 'rubygems'
- require 'rubygems/gem_runner'
- require 'rubygems/exceptions'
- # to run it on ironruby
- def install(lib)
- begin
- matches = Gem.source_index.find_name(lib)
- if matches.empty?
- puts "Installing #{lib}"
- Gem::GemRunner.new.run ['install', lib, "--no-ri", "--no-rdoc"]
- else
- puts "Found #{lib} gem - skipping"
- end
- rescue Gem::SystemExitException => e
- end
- end
- puts "Installing required dependencies"
- install 'aws-s3'
- puts "Checking dependencies"
- require 'aws/s3'
Add Comment
Please, Sign In to add comment