diff --git a/lib/llt/db_handler/tasks.rb b/lib/llt/db_handler/tasks.rb index 8f01a4c..c90488c 100644 --- a/lib/llt/db_handler/tasks.rb +++ b/lib/llt/db_handler/tasks.rb @@ -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'