forked from lastobelus/berkshelf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Thorfile
47 lines (37 loc) · 1.07 KB
/
Thorfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# encoding: utf-8
$:.push File.expand_path("../lib", __FILE__)
require 'bundler'
require 'bundler/setup'
require 'berkshelf'
require 'thor/rake_compat'
class Default < Thor
include Thor::RakeCompat
Bundler::GemHelper.install_tasks
desc "build", "Build berkshelf-#{Berkshelf::VERSION}.gem into the pkg directory"
def build
Rake::Task["build"].execute
end
desc "install", "Build and install berkshelf-#{Berkshelf::VERSION}.gem into system gems"
def install
Rake::Task["install"].execute
end
desc "release", "Create tag v#{Berkshelf::VERSION} and build and push berkshelf-#{Berkshelf::VERSION}.gem to Rubygems"
def release
Rake::Task["release"].execute
end
desc "spec", "Run RSpec code examples"
def spec
exec "rspec --color --format=documentation spec"
end
desc "cucumber", "Run Cucumber features"
def cucumber
exec "cucumber --color --format progress --tags ~@no_run"
end
class VCR < Thor
namespace :vcr
desc "clean", "clean VCR cassettes"
def clean
FileUtils.rm_rf("spec/fixtures/vcr_cassettes")
end
end
end