Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
(PA-4863) Create vanagon skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcooper committed Apr 28, 2023
1 parent 4e1fc4b commit c9443af
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
vendor/*
output/*
.bundle
gems
Gemfile.local
Gemfile.lock
*.log
ext
pkg
*.swp
18 changes: 18 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"

def location_for(place)
if place =~ /^((?:git[:@]|https:)[^#]*)#(.*)/
[{ :git => $1, :branch => $2, :require => false }]
elsif place =~ /^file:\/\/(.*)/
['>= 0', { :path => File.expand_path($1), :require => false }]
else
[place, { :require => false }]
end
end

gem 'artifactory'
gem 'vanagon', *location_for(ENV['VANAGON_LOCATION'] || '~> 0.36')
gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.109')
gem 'rake', '~> 13.0'

eval_gemfile("#{__FILE__}.local") if File.exist?("#{__FILE__}.local")
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'json'

begin
require 'packaging'
Pkg::Util::RakeUtils.load_packaging_tasks
rescue LoadError => e
puts "Error loading packaging rake tasks: #{e}"
end

0 comments on commit c9443af

Please sign in to comment.