aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-06-17 20:08:13 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-06-17 20:08:13 +0200
commit45fea420bddcf9d370b681b766a622da6f11eb38 (patch)
treecdc16b4532e97037d304ba3e67b31e0213a6492d /lib
parent28a384eea2793d741fde1fe338c16ca2c197c2fa (diff)
downloadhmnoweb-45fea420bddcf9d370b681b766a622da6f11eb38.tar.gz
hmnoweb-45fea420bddcf9d370b681b766a622da6f11eb38.tar.bz2
hmnoweb-45fea420bddcf9d370b681b766a622da6f11eb38.zip
Add license header to files.
Diffstat (limited to 'lib')
-rw-r--r--lib/capistrano/tasks/configure_piwik.rake18
-rw-r--r--lib/capistrano/tasks/configure_puma.rake18
-rw-r--r--lib/capistrano/tasks/create_secret_token.rake18
-rw-r--r--lib/capistrano/tasks/refinery_setup.rake18
-rw-r--r--lib/tasks/dev_load_sample_data.rake15
-rw-r--r--lib/tasks/dev_setup.rake15
6 files changed, 98 insertions, 4 deletions
diff --git a/lib/capistrano/tasks/configure_piwik.rake b/lib/capistrano/tasks/configure_piwik.rake
index 54f458b..612b765 100644
--- a/lib/capistrano/tasks/configure_piwik.rake
+++ b/lib/capistrano/tasks/configure_piwik.rake
@@ -1,4 +1,18 @@
-# :mode=ruby:
+# 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 :deploy do
namespace :piwik do
desc 'Configure piwik for site'
@@ -25,3 +39,5 @@ namespace :deploy do
before 'deploy:check:linked_files', 'deploy:piwik:configure'
end
+
+# :mode=ruby:
diff --git a/lib/capistrano/tasks/configure_puma.rake b/lib/capistrano/tasks/configure_puma.rake
index ccea36b..46e1daa 100644
--- a/lib/capistrano/tasks/configure_puma.rake
+++ b/lib/capistrano/tasks/configure_puma.rake
@@ -1,4 +1,18 @@
-# :mode=ruby:
+# 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 :deploy do
desc 'Configure Puma'
task :configure_puma do
@@ -13,3 +27,5 @@ namespace :deploy do
before 'deploy:finishing', 'deploy:generate_secret_token'
end
+
+# :mode=ruby:
diff --git a/lib/capistrano/tasks/create_secret_token.rake b/lib/capistrano/tasks/create_secret_token.rake
index e51a486..01658cf 100644
--- a/lib/capistrano/tasks/create_secret_token.rake
+++ b/lib/capistrano/tasks/create_secret_token.rake
@@ -1,4 +1,18 @@
-# :mode=ruby:
+# 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/>.
+
require 'securerandom'
namespace :deploy do
@@ -15,3 +29,5 @@ namespace :deploy do
before 'deploy:check:linked_files', 'deploy:generate_secret_token'
end
+
+# :mode=ruby:
diff --git a/lib/capistrano/tasks/refinery_setup.rake b/lib/capistrano/tasks/refinery_setup.rake
index 8192130..4978800 100644
--- a/lib/capistrano/tasks/refinery_setup.rake
+++ b/lib/capistrano/tasks/refinery_setup.rake
@@ -1,4 +1,18 @@
-# :mode=ruby:
+# 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/>.
+
require 'securerandom'
require 'active_support/inflector'
@@ -20,3 +34,5 @@ namespace :deploy do
before 'deploy:check:linked_files', 'deploy:refinery:setup'
end
+
+# :mode=ruby:
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