forked from hyperstack-org/hyperstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
25 lines (21 loc) · 637 Bytes
/
Rakefile
File metadata and controls
25 lines (21 loc) · 637 Bytes
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
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
namespace :spec do
task :prepare do
Dir.chdir('spec') do
sh('rm -rf test_app')
sh('bundle exec rails new test_app')
Dir.chdir('test_app') do
sh('bundle exec rails g hyperstack:install')
sh('mv Gemfile _Gemfile_')
sh('bundle exec rails generate model Sample name:string description:text')
sh('mv app/models/sample.rb app/hyperstack/models/sample.rb')
sh('bundle exec rake db:migrate')
sh('bundle exec rails dev:cache')
end
end
end
end
task :default do
end