sprinkle 0.2.6 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/CREDITS +4 -0
- data/Rakefile +50 -4
- data/TODO +56 -0
- data/VERSION +1 -0
- data/bin/sprinkle +4 -0
- data/examples/rails/deploy.rb +1 -1
- data/lib/sprinkle/actors/ssh.rb +6 -2
- data/lib/sprinkle/installers/binary.rb +46 -0
- data/lib/sprinkle/installers/freebsd_portinstall.rb +36 -0
- data/lib/sprinkle/installers/source.rb +3 -2
- data/lib/sprinkle/package.rb +27 -20
- data/lib/sprinkle/verifiers/rpm.rb +21 -0
- data/script/console +8 -0
- data/spec/sprinkle/installers/freebsd_portinstall_spec.rb +42 -0
- data/spec/sprinkle/installers/noop_spec.rb +23 -0
- data/spec/sprinkle/installers/source_spec.rb +26 -0
- data/spec/sprinkle/installers/transfer_spec.rb +98 -0
- data/spec/sprinkle/package_spec.rb +20 -10
- data/spec/sprinkle/sequence_spec.rb +44 -0
- data/spec/sprinkle/verify_spec.rb +7 -0
- metadata +79 -33
- data/History.txt +0 -4
- data/Manifest.txt +0 -111
- data/config/hoe.rb +0 -70
- data/config/requirements.rb +0 -17
- data/lib/sprinkle/version.rb +0 -9
- data/sprinkle.gemspec +0 -73
- data/tasks/deployment.rake +0 -37
- data/tasks/environment.rake +0 -7
- data/tasks/rspec.rake +0 -21
data/History.txt
DELETED
data/Manifest.txt
DELETED
@@ -1,111 +0,0 @@
|
|
1
|
-
CREDITS
|
2
|
-
History.txt
|
3
|
-
MIT-LICENSE
|
4
|
-
Manifest.txt
|
5
|
-
README.markdown
|
6
|
-
Rakefile
|
7
|
-
bin/sprinkle
|
8
|
-
config/hoe.rb
|
9
|
-
config/requirements.rb
|
10
|
-
examples/packages/build_essential.rb
|
11
|
-
examples/packages/databases/mysql.rb
|
12
|
-
examples/packages/databases/sqlite3.rb
|
13
|
-
examples/packages/phusion.rb
|
14
|
-
examples/packages/ruby/rails.rb
|
15
|
-
examples/packages/ruby/ruby.rb
|
16
|
-
examples/packages/ruby/rubygems.rb
|
17
|
-
examples/packages/scm/git.rb
|
18
|
-
examples/packages/scm/subversion.rb
|
19
|
-
examples/packages/servers/apache.rb
|
20
|
-
examples/rails/README
|
21
|
-
examples/rails/deploy.rb
|
22
|
-
examples/rails/packages/database.rb
|
23
|
-
examples/rails/packages/essential.rb
|
24
|
-
examples/rails/packages/rails.rb
|
25
|
-
examples/rails/packages/scm.rb
|
26
|
-
examples/rails/packages/search.rb
|
27
|
-
examples/rails/packages/server.rb
|
28
|
-
examples/rails/rails.rb
|
29
|
-
examples/sprinkle/sprinkle.rb
|
30
|
-
lib/sprinkle.rb
|
31
|
-
lib/sprinkle/actors/actors.rb
|
32
|
-
lib/sprinkle/actors/capistrano.rb
|
33
|
-
lib/sprinkle/actors/local.rb
|
34
|
-
lib/sprinkle/actors/ssh.rb
|
35
|
-
lib/sprinkle/actors/vlad.rb
|
36
|
-
lib/sprinkle/configurable.rb
|
37
|
-
lib/sprinkle/deployment.rb
|
38
|
-
lib/sprinkle/extensions/arbitrary_options.rb
|
39
|
-
lib/sprinkle/extensions/array.rb
|
40
|
-
lib/sprinkle/extensions/blank_slate.rb
|
41
|
-
lib/sprinkle/extensions/dsl_accessor.rb
|
42
|
-
lib/sprinkle/extensions/string.rb
|
43
|
-
lib/sprinkle/extensions/symbol.rb
|
44
|
-
lib/sprinkle/installers/apt.rb
|
45
|
-
lib/sprinkle/installers/noop.rb
|
46
|
-
lib/sprinkle/installers/bsd_port.rb
|
47
|
-
lib/sprinkle/installers/deb.rb
|
48
|
-
lib/sprinkle/installers/freebsd_pkg.rb
|
49
|
-
lib/sprinkle/installers/gem.rb
|
50
|
-
lib/sprinkle/installers/installer.rb
|
51
|
-
lib/sprinkle/installers/mac_port.rb
|
52
|
-
lib/sprinkle/installers/openbsd_pkg.rb
|
53
|
-
lib/sprinkle/installers/opensolaris_pkg.rb
|
54
|
-
lib/sprinkle/installers/push_text.rb
|
55
|
-
lib/sprinkle/installers/rake.rb
|
56
|
-
lib/sprinkle/installers/rpm.rb
|
57
|
-
lib/sprinkle/installers/source.rb
|
58
|
-
lib/sprinkle/installers/transfer.rb
|
59
|
-
lib/sprinkle/installers/yum.rb
|
60
|
-
lib/sprinkle/installers/freebsd_pkg.rb
|
61
|
-
lib/sprinkle/installers/openbsd_pkg.rb
|
62
|
-
lib/sprinkle/installers/opensolaris_pkg.rb
|
63
|
-
lib/sprinkle/installers/bsd_port.rb
|
64
|
-
lib/sprinkle/installers/mac_port.rb
|
65
|
-
lib/sprinkle/package.rb
|
66
|
-
lib/sprinkle/policy.rb
|
67
|
-
lib/sprinkle/script.rb
|
68
|
-
lib/sprinkle/verifiers/directory.rb
|
69
|
-
lib/sprinkle/verifiers/executable.rb
|
70
|
-
lib/sprinkle/verifiers/file.rb
|
71
|
-
lib/sprinkle/verifiers/process.rb
|
72
|
-
lib/sprinkle/verifiers/ruby.rb
|
73
|
-
lib/sprinkle/verifiers/symlink.rb
|
74
|
-
lib/sprinkle/verify.rb
|
75
|
-
lib/sprinkle/version.rb
|
76
|
-
script/destroy
|
77
|
-
script/generate
|
78
|
-
spec/spec.opts
|
79
|
-
spec/spec_helper.rb
|
80
|
-
spec/sprinkle/actors/capistrano_spec.rb
|
81
|
-
spec/sprinkle/actors/local_spec.rb
|
82
|
-
spec/sprinkle/configurable_spec.rb
|
83
|
-
spec/sprinkle/deployment_spec.rb
|
84
|
-
spec/sprinkle/extensions/array_spec.rb
|
85
|
-
spec/sprinkle/extensions/string_spec.rb
|
86
|
-
spec/sprinkle/installers/apt_spec.rb
|
87
|
-
spec/sprinkle/installers/bsd_port_spec.rb
|
88
|
-
spec/sprinkle/installers/freebsd_pkg_spec.rb
|
89
|
-
spec/sprinkle/installers/gem_spec.rb
|
90
|
-
spec/sprinkle/installers/installer_spec.rb
|
91
|
-
spec/sprinkle/installers/mac_port_spec.rb
|
92
|
-
spec/sprinkle/installers/openbsd_pkg_spec.rb
|
93
|
-
spec/sprinkle/installers/opensolaris_pkg_spec.rb
|
94
|
-
spec/sprinkle/installers/push_text_spec.rb
|
95
|
-
spec/sprinkle/installers/rake_spec.rb
|
96
|
-
spec/sprinkle/installers/rpm_spec.rb
|
97
|
-
spec/sprinkle/installers/source_spec.rb
|
98
|
-
spec/sprinkle/installers/yum_spec.rb
|
99
|
-
spec/sprinkle/installers/openbsd_pkg_spec.rb
|
100
|
-
spec/sprinkle/installers/freebsd_pkg_spec.rb
|
101
|
-
spec/sprinkle/installers/bsd_port_spec.rb
|
102
|
-
spec/sprinkle/installers/mac_port_spec.rb
|
103
|
-
spec/sprinkle/package_spec.rb
|
104
|
-
spec/sprinkle/policy_spec.rb
|
105
|
-
spec/sprinkle/script_spec.rb
|
106
|
-
spec/sprinkle/sprinkle_spec.rb
|
107
|
-
spec/sprinkle/verify_spec.rb
|
108
|
-
sprinkle.gemspec
|
109
|
-
tasks/deployment.rake
|
110
|
-
tasks/environment.rake
|
111
|
-
tasks/rspec.rake
|
data/config/hoe.rb
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
require 'sprinkle/version'
|
2
|
-
|
3
|
-
AUTHOR = 'Marcus Crafter' # can also be an array of Authors
|
4
|
-
EMAIL = "crafterm@redartisan.com"
|
5
|
-
DESCRIPTION = "Ruby DSL based software provisioning tool"
|
6
|
-
GEM_NAME = 'sprinkle' # what ppl will type to install your gem
|
7
|
-
RUBYFORGE_PROJECT = 'sprinkle' # The unix name for your project
|
8
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
9
|
-
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
10
|
-
|
11
|
-
@config_file = "~/.rubyforge/user-config.yml"
|
12
|
-
@config = nil
|
13
|
-
RUBYFORGE_USERNAME = "unknown"
|
14
|
-
def rubyforge_username
|
15
|
-
unless @config
|
16
|
-
begin
|
17
|
-
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
18
|
-
rescue
|
19
|
-
puts <<-EOS
|
20
|
-
ERROR: No rubyforge config file found: #{@config_file}
|
21
|
-
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
22
|
-
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
23
|
-
EOS
|
24
|
-
exit
|
25
|
-
end
|
26
|
-
end
|
27
|
-
RUBYFORGE_USERNAME.replace @config["username"]
|
28
|
-
end
|
29
|
-
|
30
|
-
|
31
|
-
REV = nil
|
32
|
-
# UNCOMMENT IF REQUIRED:
|
33
|
-
# REV = `svn info`.each {|line| if line =~ /^Revision:/ then k,v = line.split(': '); break v.chomp; else next; end} rescue nil
|
34
|
-
VERS = Sprinkle::VERSION::STRING + (REV ? ".#{REV}" : "")
|
35
|
-
RDOC_OPTS = ['--quiet', '--title', 'sprinkle documentation',
|
36
|
-
"--opname", "index.html",
|
37
|
-
"--line-numbers",
|
38
|
-
"--main", "README.markdown",
|
39
|
-
"--inline-source"]
|
40
|
-
|
41
|
-
class Hoe
|
42
|
-
def extra_deps
|
43
|
-
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
|
44
|
-
@extra_deps
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
# Generate all the Rake tasks
|
49
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
50
|
-
hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
51
|
-
p.developer(AUTHOR, EMAIL)
|
52
|
-
p.description = DESCRIPTION
|
53
|
-
p.summary = DESCRIPTION
|
54
|
-
p.url = HOMEPATH
|
55
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
56
|
-
p.test_globs = ["test/**/test_*.rb"]
|
57
|
-
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
|
58
|
-
|
59
|
-
# == Optional
|
60
|
-
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
61
|
-
p.extra_deps = [ ['activesupport', '>= 2.0.2'], ['highline', '>= 1.4.0'], ['capistrano', '>= 2.5.5'] ] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
|
62
|
-
|
63
|
-
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
64
|
-
|
65
|
-
end
|
66
|
-
|
67
|
-
CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
68
|
-
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
69
|
-
hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
70
|
-
hoe.rsync_args = '-av --delete --ignore-errors'
|
data/config/requirements.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
include FileUtils
|
3
|
-
|
4
|
-
require 'rubygems'
|
5
|
-
%w[rake hoe newgem rubigen].each do |req_gem|
|
6
|
-
begin
|
7
|
-
require req_gem
|
8
|
-
rescue LoadError
|
9
|
-
puts "This Rakefile requires the '#{req_gem}' RubyGem."
|
10
|
-
puts "Installation: gem install #{req_gem} -y"
|
11
|
-
exit
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
|
16
|
-
|
17
|
-
require 'sprinkle'
|
data/lib/sprinkle/version.rb
DELETED
data/sprinkle.gemspec
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |s|
|
2
|
-
s.name = %q{sprinkle}
|
3
|
-
s.version = "0.2.6"
|
4
|
-
|
5
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
|
-
s.authors = ["Marcus Crafter", "Mitchell Hashimoto"]
|
7
|
-
s.date = %q{2008-11-25}
|
8
|
-
s.default_executable = %q{sprinkle}
|
9
|
-
s.description = %q{Ruby DSL based software provisioning tool}
|
10
|
-
s.email = ["crafterm@redartisan.com", "mitchell.hashimoto@citrusbyte.com"]
|
11
|
-
s.executables = ["sprinkle"]
|
12
|
-
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.markdown"]
|
13
|
-
s.files = ["CREDITS", "History.txt", "MIT-LICENSE", "Manifest.txt", "README.markdown", "Rakefile", "bin/sprinkle",
|
14
|
-
"config/hoe.rb", "config/requirements.rb", "examples/packages/build_essential.rb",
|
15
|
-
"examples/packages/databases/mysql.rb", "examples/packages/databases/sqlite3.rb",
|
16
|
-
"examples/packages/phusion.rb", "examples/packages/ruby/rails.rb", "examples/packages/ruby/ruby.rb",
|
17
|
-
"examples/packages/ruby/rubygems.rb", "examples/packages/scm/git.rb", "examples/packages/scm/subversion.rb",
|
18
|
-
"examples/packages/servers/apache.rb", "examples/rails/README", "examples/rails/deploy.rb",
|
19
|
-
"examples/rails/packages/database.rb", "examples/rails/packages/essential.rb", "examples/rails/packages/rails.rb",
|
20
|
-
"examples/rails/packages/scm.rb", "examples/rails/packages/search.rb", "examples/rails/packages/server.rb",
|
21
|
-
"examples/rails/rails.rb", "examples/sprinkle/sprinkle.rb", "lib/sprinkle.rb", "lib/sprinkle/actors/actors.rb",
|
22
|
-
"lib/sprinkle/actors/capistrano.rb", "lib/sprinkle/actors/local.rb", "lib/sprinkle/actors/ssh.rb", "lib/sprinkle/actors/vlad.rb",
|
23
|
-
"lib/sprinkle/configurable.rb", "lib/sprinkle/deployment.rb", "lib/sprinkle/extensions/arbitrary_options.rb",
|
24
|
-
"lib/sprinkle/extensions/array.rb", "lib/sprinkle/extensions/blank_slate.rb", "lib/sprinkle/extensions/dsl_accessor.rb",
|
25
|
-
"lib/sprinkle/extensions/string.rb", "lib/sprinkle/extensions/symbol.rb", "lib/sprinkle/installers/apt.rb",
|
26
|
-
"lib/sprinkle/installers/deb.rb", "lib/sprinkle/installers/gem.rb", "lib/sprinkle/installers/installer.rb",
|
27
|
-
"lib/sprinkle/installers/rake.rb", "lib/sprinkle/installers/rpm.rb", "lib/sprinkle/installers/source.rb",
|
28
|
-
"lib/sprinkle/installers/yum.rb", "lib/sprinkle/installers/freebsd_pkg.rb", "lib/sprinkle/installers/openbsd_pkg.rb", "lib/sprinkle/installers/noop.rb",
|
29
|
-
"lib/sprinkle/installers/opensolaris_pkg.rb", "lib/sprinkle/installers/bsd_port.rb", "lib/sprinkle/installers/mac_port.rb", "lib/sprinkle/installers/push_text.rb",
|
30
|
-
"lib/sprinkle/package.rb", "lib/sprinkle/policy.rb", "lib/sprinkle/script.rb", "lib/sprinkle/verifiers/directory.rb",
|
31
|
-
"lib/sprinkle/verifiers/executable.rb", "lib/sprinkle/verifiers/file.rb", "lib/sprinkle/verifiers/process.rb",
|
32
|
-
"lib/sprinkle/verifiers/ruby.rb", "lib/sprinkle/verifiers/symlink.rb", "lib/sprinkle/verify.rb", "lib/sprinkle/version.rb",
|
33
|
-
"script/destroy", "script/generate", "sprinkle.gemspec", "tasks/deployment.rake", "tasks/environment.rake", "tasks/rspec.rake"]
|
34
|
-
|
35
|
-
s.test_files = ["spec/spec.opts", "spec/spec_helper.rb", "spec/sprinkle/actors/capistrano_spec.rb",
|
36
|
-
"spec/sprinkle/actors/local_spec.rb", "spec/sprinkle/configurable_spec.rb", "spec/sprinkle/deployment_spec.rb",
|
37
|
-
"spec/sprinkle/extensions/array_spec.rb", "spec/sprinkle/extensions/string_spec.rb", "spec/sprinkle/installers/apt_spec.rb",
|
38
|
-
"spec/sprinkle/installers/gem_spec.rb", "spec/sprinkle/installers/installer_spec.rb", "spec/sprinkle/installers/rpm_spec.rb",
|
39
|
-
"spec/sprinkle/installers/yum_spec.rb", "spec/sprinkle/installers/source_spec.rb", "spec/sprinkle/installers/freebsd_pkg_spec.rb",
|
40
|
-
"spec/sprinkle/installers/openbsd_pkg_spec.rb", "spec/sprinkle/installers/opensolaris_pkg_spec.rb",
|
41
|
-
"spec/sprinkle/installers/mac_port_spec.rb", "spec/sprinkle/installers/push_text_spec.rb", "spec/sprinkle/installers/bsd_port_spec.rb", "spec/sprinkle/policy_spec.rb",
|
42
|
-
"spec/sprinkle/script_spec.rb", "spec/sprinkle/sprinkle_spec.rb", "spec/sprinkle/installers/rake_spec.rb", "spec/sprinkle/verify_spec.rb"]
|
43
|
-
s.has_rdoc = true
|
44
|
-
s.homepage = %q{http://sprinkle.rubyforge.org}
|
45
|
-
s.rdoc_options = ["--main", "README.markdown"]
|
46
|
-
s.require_paths = ["lib"]
|
47
|
-
s.rubyforge_project = %q{sprinkle}
|
48
|
-
s.rubygems_version = %q{1.3.0}
|
49
|
-
s.summary = %q{Ruby DSL based software provisioning tool}
|
50
|
-
|
51
|
-
if s.respond_to? :specification_version then
|
52
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
53
|
-
s.specification_version = 2
|
54
|
-
|
55
|
-
if current_version >= 3 then
|
56
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 2.0.2"])
|
57
|
-
s.add_runtime_dependency(%q<highline>, [">= 1.4.0"])
|
58
|
-
s.add_runtime_dependency(%q<capistrano>, [">= 2.5.5"])
|
59
|
-
s.add_development_dependency(%q<hoe>, [">= 1.8.2"])
|
60
|
-
s.add_development_dependency(%q<echoe>, [">= 3.0.2"])
|
61
|
-
else
|
62
|
-
s.add_dependency(%q<activesupport>, [">= 2.0.2"])
|
63
|
-
s.add_dependency(%q<highline>, [">= 1.4.0"])
|
64
|
-
s.add_dependency(%q<capistrano>, [">= 2.5.5"])
|
65
|
-
s.add_dependency(%q<hoe>, [">= 1.8.2"])
|
66
|
-
end
|
67
|
-
else
|
68
|
-
s.add_dependency(%q<activesupport>, [">= 2.0.2"])
|
69
|
-
s.add_dependency(%q<highline>, [">= 1.4.0"])
|
70
|
-
s.add_dependency(%q<capistrano>, [">= 2.5.5"])
|
71
|
-
s.add_dependency(%q<hoe>, [">= 1.8.2"])
|
72
|
-
end
|
73
|
-
end
|
data/tasks/deployment.rake
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
desc 'Release the website and new gem version'
|
2
|
-
task :deploy => [:check_version, :website, :release] do
|
3
|
-
puts "Remember to create SVN tag:"
|
4
|
-
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
5
|
-
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
6
|
-
puts "Suggested comment:"
|
7
|
-
puts "Tagging release #{CHANGES}"
|
8
|
-
end
|
9
|
-
|
10
|
-
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
|
11
|
-
task :local_deploy => [:website_generate, :install_gem]
|
12
|
-
|
13
|
-
task :check_version do
|
14
|
-
unless ENV['VERSION']
|
15
|
-
puts 'Must pass a VERSION=x.y.z release version'
|
16
|
-
exit
|
17
|
-
end
|
18
|
-
unless ENV['VERSION'] == VERS
|
19
|
-
puts "Please update your version.rb to match the release version, currently #{VERS}"
|
20
|
-
exit
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
task :clobber_rcov do
|
25
|
-
end
|
26
|
-
|
27
|
-
desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
|
28
|
-
task :install_gem_no_doc => [:clean, :package] do
|
29
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
|
30
|
-
end
|
31
|
-
|
32
|
-
namespace :manifest do
|
33
|
-
desc 'Recreate Manifest.txt to include ALL files'
|
34
|
-
task :refresh do
|
35
|
-
`rake check_manifest | patch -p0 > Manifest.txt`
|
36
|
-
end
|
37
|
-
end
|
data/tasks/environment.rake
DELETED
data/tasks/rspec.rake
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems'
|
5
|
-
require 'spec'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'spec/rake/spectask'
|
9
|
-
rescue LoadError
|
10
|
-
puts <<-EOS
|
11
|
-
To use rspec for testing you must install rspec gem:
|
12
|
-
gem install rspec
|
13
|
-
EOS
|
14
|
-
exit(0)
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Run the specs under spec"
|
18
|
-
Spec::Rake::SpecTask.new do |t|
|
19
|
-
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
-
end
|