File: Rakefile

package info (click to toggle)
ruby-vmstat 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 348 kB
  • sloc: ruby: 1,131; ansic: 347; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'rake/extensiontask'
require 'rspec/core/rake_task'

Rake::ExtensionTask.new(:vmstat) do |ext|
	ext.lib_dir = 'lib/vmstat'
end

desc "Run specs"
RSpec::Core::RakeTask.new(:spec => :compile)

desc "Open an irb session preloaded with smartstat"
task :console do
  sh "irb -rubygems -I ./lib -r vmstat"
end

desc 'Default: run specs.'
task :default => :spec