Sha256: 475637859d60c27e506098e9daef56a72db4839b08ec524f4c27b2adf2ac5303

Contents?: true

Size: 839 Bytes

Versions: 26

Compression:

Stored size: 839 Bytes

Contents

require 'shellwords'
require 'rubygems'
require 'bundler'
require 'rake'


# "rake test"
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.test_files = FileList['test/test*.rb']
  test.verbose = true
end

task :default => :test


# "rake yard"
require 'yard'
YARD::Rake::YardocTask.new do |t|
  t.files = %w[ --readme Readme.md lib/**/*.rb - VERSION ]
end


# "rake build"
require 'rubygems/tasks'
Gem::Tasks.new({
  sign: {}
}) do |tasks|
  tasks.console.command = 'pry'
end
Gem::Tasks::Sign::Checksum.new sha2: true


# "rake version"
require 'rake/version_task'
Rake::VersionTask.new


# "rake fpm"
desc 'Convert latest .gem to .deb with FPM'
task fpm: :build do
  latest_gem = Dir['pkg/*.gem'].pop
  system "fpm -s gem -t deb #{Shellwords::escape latest_gem}"
  system 'mv *.deb pkg'
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
kitchen_hooks-1.7.20 Rakefile
kitchen_hooks-1.7.19 Rakefile
kitchen_hooks-1.7.18 Rakefile
kitchen_hooks-1.7.17 Rakefile
kitchen_hooks-1.7.16 Rakefile
kitchen_hooks-1.7.15 Rakefile
kitchen_hooks-1.7.14 Rakefile
kitchen_hooks-1.7.13 Rakefile
kitchen_hooks-1.7.12 Rakefile
kitchen_hooks-1.7.11 Rakefile
kitchen_hooks-1.7.10 Rakefile
kitchen_hooks-1.7.9 Rakefile
kitchen_hooks-1.7.8 Rakefile
kitchen_hooks-1.7.7 Rakefile
kitchen_hooks-1.7.6 Rakefile
kitchen_hooks-1.7.5 Rakefile
kitchen_hooks-1.7.4 Rakefile
kitchen_hooks-1.7.3 Rakefile
kitchen_hooks-1.7.2 Rakefile
kitchen_hooks-1.7.1 Rakefile