Sha256: e0fda0806df8a2e4f3c6d2cda7007d00873415247cfd14d14561630edca9d90b

Contents?: true

Size: 989 Bytes

Versions: 19

Compression:

Stored size: 989 Bytes

Contents

#!/usr/bin/env rake

require 'fedux_org/stdlib/rake'

require 'local_pac/version'

def software
  'local_pac'
end

def version
  LocalPac::VERSION
end

def root_directory
  File.expand_path('../', __FILE__)
end

def tar_file
  File.join(pkg_directory, "#{software}-#{version}.tar.gz")
end

def tmp_directory
  File.join(root_directory, 'tmp', "#{software}-#{version}")
end

def gem_file
  File.join(root_directory, 'pkg', "#{software}-#{version}.gem")
end

def pkg_directory
  File.join(root_directory, 'pkg')
end

def gem_directory
  File.join(root_directory, 'vendor', 'cache')
end

task :default => 'gem:build'

file gem_file => 'gem:build'

file tmp_directory do
  FileUtils.mkdir_p tmp_directory
end

namespace :gem do
  desc 'build tar file'
  task :package => [gem_file, tmp_directory] do
    FileUtils.mv File.join(pkg_directory, "#{software}-#{version}.gem"), tmp_directory

    Dir.chdir('tmp') do
      sh "tar -czf #{tar_file} #{File.basename tmp_directory}"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
local_pac-0.1.13 Rakefile
local_pac-0.1.11 Rakefile
local_pac-0.1.10 Rakefile
local_pac-0.1.9 Rakefile
local_pac-0.1.8 Rakefile
local_pac-0.1.7 Rakefile
local_pac-0.1.6 Rakefile
local_pac-0.1.5 Rakefile
local_pac-0.1.4 Rakefile
local_pac-0.1.3 Rakefile
local_pac-0.1.2 Rakefile
local_pac-0.1.1 Rakefile
local_pac-0.1.0 Rakefile
local_pac-0.0.7 Rakefile
local_pac-0.0.6 Rakefile
local_pac-0.0.5 Rakefile
local_pac-0.0.4 Rakefile
local_pac-0.0.3 Rakefile
local_pac-0.0.2 Rakefile