Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 86beb7e

Browse files
committed
Incldued ASL2 License in NS-Catalogue
1 parent 76d95aa commit 86beb7e

File tree

6 files changed

+104
-4
lines changed

6 files changed

+104
-4
lines changed

ns-catalogue/LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
TeNOR - NS Catalogue
2+
3+
Copyright 2014-2016 i2CAT Foundation
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.

ns-catalogue/Rakefile

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,22 @@ namespace :db do
2222
task :load_config do
2323
require './main'
2424
end
25-
end
25+
end
26+
27+
task :headers do
28+
require 'rubygems'
29+
require 'copyright_header'
30+
31+
args = {
32+
:license => 'ASL2',
33+
:copyright_software => 'TeNOR',
34+
:copyright_software_description => "NS Catalogue",
35+
:copyright_holders => ['i2CAT Foundation'],
36+
:copyright_years => ['2014-2016'],
37+
:add_path => 'routes:helpers',
38+
:output_dir => '.'
39+
}
40+
41+
command_line = CopyrightHeader::CommandLine.new( args )
42+
command_line.execute
43+
end

ns-catalogue/helpers/init.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1+
#
2+
# TeNOR - NS Catalogue
3+
#
4+
# Copyright 2014-2016 i2CAT Foundation
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
118
require_relative 'ns'

ns-catalogue/helpers/ns.rb

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
#
2+
# TeNOR - NS Catalogue
3+
#
4+
# Copyright 2014-2016 i2CAT Foundation
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
118
# @see OrchestratorNsCatalogue
219
class OrchestratorNsCatalogue < Sinatra::Application
320

@@ -42,4 +59,4 @@ def build_http_link(offset, limit)
4259
link
4360
end
4461

45-
end
62+
end

ns-catalogue/routes/init.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1+
#
2+
# TeNOR - NS Catalogue
3+
#
4+
# Copyright 2014-2016 i2CAT Foundation
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
118
require_relative 'ns'

ns-catalogue/routes/ns.rb

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
#
2+
# TeNOR - NS Catalogue
3+
#
4+
# Copyright 2014-2016 i2CAT Foundation
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
118
# @see OrchestratorNsCatalogue
219
class OrchestratorNsCatalogue < Sinatra::Application
320

@@ -156,5 +173,4 @@ class OrchestratorNsCatalogue < Sinatra::Application
156173
ns.destroy
157174
return 200
158175
end
159-
end
160-
176+
end

0 commit comments

Comments
 (0)