Hi,
I'm rather new at using sequel. I'm writing a sequel skeleton
<https://github.com/renemaya/sequel_skeleton> so that I can easily add
sequel with some extras via a Rakefile to my projects. It's based on
Jeremy's roda-sequel-stack
<https://github.com/jeremyevans/roda-sequel-stack> but I'm missing
something because once I run `rake repl` I should be able to create new
entries in the database but I'm not able to do it.
the code in questions is
desc "Open REPL instance"
task :repl do
if ENV['RACK_ENV'] == 'production'
trap('INT', "IGNORE")
sh "#{FileUtils::RUBY.sub('ruby', 'irb')} -r ./db/models"
else
trap('INT', "IGNORE")
sh "#{FileUtils::RUBY.sub('ruby', 'pry')} -r ./db/models"
end
end
Cheers
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.