helm/rake/packages.rake

38 lines
765 B
Ruby
Raw Normal View History

2014-08-30 23:54:28 -07:00
require_relative "lib/git"
2014-08-30 23:50:03 -07:00
require_relative "lib/os"
require_relative "lib/output"
2014-08-30 23:54:28 -07:00
require_relative "lib/rake"
require_relative "lib/sh"
2014-08-30 23:50:03 -07:00
verbose(false)
namespace :pkg do
desc 'Setup/update package manager & packages'
if is_mac?
task :update => 'homebrew:update'
elsif is_linux?
task :update => 'aptitude:update'
else
task :update do
echo "Package manager not implemented for this OS"
end
end
2014-08-30 23:50:03 -07:00
load_all("pkg/*.rake")
end
namespace :test do
task :output do
echo "Testing output"
echo "Testing sub-header output", 2
echo "Another sub-header", 3
error "A big bad error!"
end
task :tasks do
sh "echo 'This should pass'"
sh_safe "fake-command_ This should fail" # without disrupting the task
end
end