Sha256: bb181800cd48a07ce2b16f5329f4abda06c35ab74bc54b2bd51065a59f8eb6cc

Contents?: true

Size: 854 Bytes

Versions: 16

Compression:

Stored size: 854 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({
  push: false,
  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

16 entries across 16 versions & 1 rubygems

Version Path
kitchen_hooks-1.5.7 Rakefile
kitchen_hooks-1.5.6 Rakefile
kitchen_hooks-1.5.5 Rakefile
kitchen_hooks-1.5.4 Rakefile
kitchen_hooks-1.5.3 Rakefile
kitchen_hooks-1.5.2 Rakefile
kitchen_hooks-1.5.1 Rakefile
kitchen_hooks-1.5.0 Rakefile
kitchen_hooks-1.4.4 Rakefile
kitchen_hooks-1.4.3 Rakefile
kitchen_hooks-1.4.2 Rakefile
kitchen_hooks-1.4.1 Rakefile
kitchen_hooks-1.4.0 Rakefile
kitchen_hooks-1.3.2 Rakefile
kitchen_hooks-1.3.1 Rakefile
kitchen_hooks-1.3.0 Rakefile