Add LICENSE headers

This commit is contained in:
Daniel Molina committed 2012-09-24 18:28:24 +02:00
1 parent 4845533943
commit 43cd910603
52 files changed
+727 -91

No files matched your search

+15
View File
@@ -1,4 +1,19 @@
#!/usr/bin/env rake
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
+9 -10
View File
@@ -1,18 +1,17 @@
#! /bin/sh
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
+15
View File
@@ -1,5 +1,20 @@
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
ONE_LOCATION=ENV["ONE_LOCATION"]
if !ONE_LOCATION
+15
View File
@@ -1,5 +1,20 @@
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
ONE_LOCATION=ENV["ONE_LOCATION"]
if !ONE_LOCATION
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'uri'
require 'cloud/CloudClient'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
$: << '.'
require 'controllers/appflow-server'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
################################################################################
# Server Configuration
################################################################################
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'rubygems'
require 'sinatra'
require 'yaml'
+9 -10
View File
@@ -1,16 +1,15 @@
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
+9 -10
View File
@@ -1,16 +1,15 @@
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
module Straight
# Using this strategy the service is deployed based on a directed
# acyclic graph where each node defines its parents.
+9 -10
View File
@@ -1,16 +1,15 @@
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'uri'
class Hash
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'OpenNebula'
include OpenNebula
+9 -10
View File
@@ -1,16 +1,15 @@
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
+9 -10
View File
@@ -1,16 +1,15 @@
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
+10 -11
View File
@@ -1,16 +1,15 @@
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
@@ -67,7 +66,7 @@ module OpenNebula
if entry.nil?
entry = [Mutex.new, 0]
@@mutex_hash[service_id] = entry
end
+9 -10
View File
@@ -1,16 +1,15 @@
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
+9 -10
View File
@@ -1,16 +1,15 @@
# -------------------------------------------------------------------------- #
# Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
################################################################################
# Appflow
################################################################################
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
APPFLOW_CONF_FILE = ETC_LOCATION + "/sunstone-appflow.conf"
$: << RUBY_LIB_LOCATION+"/apptools/flow"
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
source "http://rubygems.org"
gem 'json'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
$: << './'
require 'models'
+15
View File
@@ -1,5 +1,20 @@
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
ONE_LOCATION=ENV["ONE_LOCATION"]
if !ONE_LOCATION
+15
View File
@@ -1,5 +1,20 @@
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
ONE_LOCATION=ENV["ONE_LOCATION"]
if !ONE_LOCATION
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'uri'
require 'CloudClient'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
$: << '.'
require 'controllers/appmarket-server'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
# Host and port where AppMarket server will run
:host: 127.0.0.1
:port: 6242
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'rubygems'
require 'mongo'
require 'yaml'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'rubygems'
require 'sinatra'
require 'haml'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'mail'
require 'erb'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'json'
module Parser
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'digest/sha1'
class Session
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'uri'
class Hash
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'init'
require 'validator'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'uri'
require 'net/http'
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
require 'bcrypt'
class User
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
################################################################################
# AppMarket
################################################################################
+15
View File
@@ -1,3 +1,18 @@
# -------------------------------------------------------------------------- #
# Copyright 2010-2012, C12G Labs S.L. #
# #
# Licensed under the C12G Commercial Open-source License (the #
# "License"); you may not use this file except in compliance #
# with the License. You may obtain a copy of the License as part #
# of the software distribution. #
# #
# Unless agreed to in writing, software distributed under the #
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES #
# OR CONDITIONS OF ANY KIND, either express or implied. See the #
# License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #
APPMARKET_CONF_FILE = ETC_LOCATION + "/sunstone-appmarket.conf"
$: << RUBY_LIB_LOCATION+"/apptools/market"
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
%fieldset
.control-group
%label.control-label{'for' => 'name_form'} Name
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
.navbar.navbar-static
.navbar-inner
.container
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
.navbar.navbar-static
.navbar-inner
.container
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
.row-fluid
.span4
:plain
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
%p
© 2012 C12G Labs S.L. All Rights Reserved.
%a{'href' => "http://www.c12g.com/legal-notice"} Legal Notice.
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
%a.span4{'href' => "http://www.opennebula.org/"}
%img{'src' => "/img/opennebula_gray.png"}
%a.pull-right{'href' => "http://www.c12g.com/"}
+15
View File
@@ -1,2 +1,17 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
Accept
%a{'href' => 'http://www.c12g.com//marketplace-terms-of-use', 'target' => 'blank'} Terms of Use
+15
View File
@@ -1,2 +1,17 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
%i.icon-shopping-cart.icon-white
OpenNebula AppMarket
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
!!!
%html{:lang => "en"}
%head
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
%ul.nav.pull-right.nav-pills
%li.divider-vertical
- if @session.anonymous?
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
%fieldset
.control-group
%label.control-label{'for' => 'organization_form'} Organization
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
.navbar.navbar-static
.navbar-inner
.container
+15
View File
@@ -1,3 +1,18 @@
//--------------------------------------------------------------------------//
// Copyright 2010-2012, C12G Labs S.L. //
// //
// Licensed under the C12G Commercial Open-source License (the //
// "License"); you may not use this file except in compliance //
// with the License. You may obtain a copy of the License as part //
// of the software distribution. //
// //
// Unless agreed to in writing, software distributed under the //
// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES //
// OR CONDITIONS OF ANY KIND, either express or implied. See the //
// License for the specific language governing permissions and //
// limitations under the License. //
//--------------------------------------------------------------------------//
.navbar.navbar-static
.navbar-inner
.container