aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/dev_load_sample_data.rake15
-rw-r--r--lib/tasks/dev_setup.rake15
2 files changed, 30 insertions, 0 deletions
diff --git a/lib/tasks/dev_load_sample_data.rake b/lib/tasks/dev_load_sample_data.rake
index c9333b9..da43843 100644
--- a/lib/tasks/dev_load_sample_data.rake
+++ b/lib/tasks/dev_load_sample_data.rake
@@ -1,3 +1,18 @@
+# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no
+# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
namespace :dev do
task :create_sample_user => [:environment] do
Refinery::User.create(:username => "sample user",
diff --git a/lib/tasks/dev_setup.rake b/lib/tasks/dev_setup.rake
index 7042710..7d7cbc7 100644
--- a/lib/tasks/dev_setup.rake
+++ b/lib/tasks/dev_setup.rake
@@ -1,3 +1,18 @@
+# This file is part of hmnoweb, a RefineryCMS based Webapp for heavymetal.no
+# Copyright (C) 2018 Harald Eilertsen <haraldei@anduin.net>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
# Rake task for local development setup
namespace :dev do