Sha256: c7ff2791f7ea60055299f221c50b4c7bec3abbb0d3068603fe3af72f0cc8a469

Contents?: true

Size: 738 Bytes

Versions: 1

Compression:

Stored size: 738 Bytes

Contents

require "rubygems"
require "rubygems/command"
require "rubygems/dependency_installer"
begin
    Gem::Command.build_args = ARGV
rescue NoMethodError # rubocop:disable Lint/HandleExceptions
end

installer = Gem::DependencyInstaller.new

begin
    case Gem::Platform.local.os
    when "linux"
        installer.install "gir_ffi-gnome_keyring", Gem::Requirement.new("~> 0.0", ">= 0.0.3")
    when "darwin"
        installer.install "ruby-keychain", Gem::Requirement.new("~> 0.3", ">= 0.3.2")
    end
rescue => e # rubocop:disable Lint/RescueWithoutErrorClass
    puts e.backtrace
    exit(1)
end

f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") # create dummy rakefile to indicate success
f.write("task :default\n")
f.close

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws_assume_role-1.0.6 ext/mkrf_conf.rb