Guest User

Untitled

a guest
Jan 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!c:/ruby/bin/ruby.exe
  2. require 'rubygems'
  3. require 'rubygems/gem_runner'
  4. require 'rubygems/exceptions'
  5. # to run it on ironruby
  6. def install(lib)
  7. begin
  8. matches = Gem.source_index.find_name(lib)
  9. if matches.empty?
  10. puts "Installing #{lib}"
  11. Gem::GemRunner.new.run ['install', lib, "--no-ri", "--no-rdoc"]
  12. else
  13. puts "Found #{lib} gem - skipping"
  14. end
  15. rescue Gem::SystemExitException => e
  16. end
  17. end
  18.  
  19. puts "Installing required dependencies"
  20.  
  21. install 'aws-s3'
  22.  
  23. puts "Checking dependencies"
  24. require 'aws/s3'
Add Comment
Please, Sign In to add comment