Sha256: db65f6943afda6affd3b08a475737a5ba4f5f4ad634d5ba9065fb516e76c5da0
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
require 'bundler/gem_tasks' require 'rspec/core' require 'rspec/core/rake_task' task :default => :spec task :s => :server desc "Run all specs in spec directory (excluding plugin specs)" RSpec::Core::RakeTask.new(:spec) desc 'Run ferver locally from source' task :server do require 'rubygems' require 'bundler' Bundler.setup require 'ferver' # use the last argument (first is the rake task) as the file path to serve from ferver_path = (ARGV.length == 2 && ARGV.last) || nil Ferver.configure do |config| config.directory_path = ferver_path end Ferver::App.set :raise_errors, false # run! Ferver::App.run! end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ferver-1.2.1 | Rakefile |
ferver-1.2.0 | Rakefile |