Skip to content

Commit

Permalink
Merge pull request #9331 from mhashizume/PA-6294/main/rake-gem
Browse files Browse the repository at this point in the history
Simplify Rakefile
  • Loading branch information
mhashizume authored May 21, 2024
2 parents b0d63e5 + 366e8c6 commit 290ebdb
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
# Rakefile for Puppet -*- ruby -*-
RAKE_ROOT = File.dirname(__FILE__)
# frozen_string_literal: true

# We need access to the Puppet.version method
$LOAD_PATH.unshift(File.expand_path("lib"))
require 'puppet/version'

$LOAD_PATH << File.join(RAKE_ROOT, 'tasks')

begin
require 'rubygems'
require 'rubygems/package_task'
rescue LoadError
# Users of older versions of Rake (0.8.7 for example) will not necessarily
# have rubygems installed, or the newer rubygems package_task for that
# matter.
require 'rake/packagetask'
require 'rake/gempackagetask'
end

require 'rake'
require 'open3'

Dir['tasks/**/*.rake'].each { |t| load t }
require 'rake'
require 'rubygems'
require 'rubygems/package_task'

if Rake.application.top_level_tasks.grep(/^(pl:|package:)/).any?
begin
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 290ebdb

Please sign in to comment.