Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/llt/db_handler/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
end

desc 'Creates the stem database'
task :create do
exec 'createdb -U prometheus -h localhost -T template0 prometheus_stems'
task :create, :host do |t, args|
host = args[:host] || 'localhost'
exec "createdb -U prometheus -h #{host} -T template0 prometheus_stems"
end

desc 'Opens the psql console'
Expand Down