Sha256: d5720108b8403c68a58716ee675c220db7428a867f82c3bfa0d7252c9567e321

Contents?: true

Size: 658 Bytes

Versions: 8

Compression:

Stored size: 658 Bytes

Contents

require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:test)

task :coverage do
	ENV['COVERAGE'] = 'PartialSummary'
end

desc 'Start the development server.'
task :server => :environment do
	exec('guard', '-g', 'development')
end

desc 'Start the development environment which includes web server and tests.'
task :development => :environment do
	exec('guard', '-g', 'development,test')
end

desc 'Start an interactive console for your web application'
task :console => :environment do
	require 'pry'
	require 'rack/test'
	
	include Rack::Test::Methods
	
	def app
		@app ||= Rack::Builder.parse_file(SITE_ROOT + 'config.ru').first
	end
	
	Pry.start
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
utopia-2.11.1 setup/site/tasks/development.rake
utopia-2.11.0 setup/site/tasks/development.rake
utopia-2.10.0 setup/site/tasks/development.rake
utopia-2.9.5 setup/site/tasks/development.rake
utopia-2.9.3 setup/site/tasks/development.rake
utopia-2.9.2 setup/site/tasks/development.rake
utopia-2.9.1 setup/site/tasks/development.rake
utopia-2.9.0 setup/site/tasks/development.rake