You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2010/12/07 16:31:16 UTC
svn commit: r1043093 - in /incubator/deltacloud/trunk/server: ./ lib/
lib/deltacloud/ lib/deltacloud/drivers/ec2/ lib/deltacloud/drivers/gogrid/
lib/deltacloud/drivers/mock/ lib/deltacloud/drivers/rackspace/
lib/deltacloud/helpers/ lib/deltacloud/model...
Author: mfojtik
Date: Tue Dec 7 15:31:14 2010
New Revision: 1043093
URL: http://svn.apache.org/viewvc?rev=1043093&view=rev
Log:
Added ASF license header to files
Removed:
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/test.rb
incubator/deltacloud/trunk/server/libexec/app/views/api/show.html.erb
incubator/deltacloud/trunk/server/libexec/app/views/layouts/application.html.erb
incubator/deltacloud/trunk/server/libexec/app/views/layouts/old.html.erb
incubator/deltacloud/trunk/server/libexec/public/stylesheets/application.css
incubator/deltacloud/trunk/server/libexec/public/stylesheets/sass/application.sass
Modified:
incubator/deltacloud/trunk/server/config.ru
incubator/deltacloud/trunk/server/deltacloud.rb
incubator/deltacloud/trunk/server/lib/deltacloud/backend_capability.rb
incubator/deltacloud/trunk/server/lib/deltacloud/base_driver.rb
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_mock_driver.rb
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb
incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rackspace/rackspace_client.rb
incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb
incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb
incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb
incubator/deltacloud/trunk/server/lib/deltacloud/helpers/conversion_helper.rb
incubator/deltacloud/trunk/server/lib/deltacloud/helpers/hardware_profiles_helper.rb
incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/base_model.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/image.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_profile.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/key.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/load_balancer.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/realm.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_snapshot.rb
incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_volume.rb
incubator/deltacloud/trunk/server/lib/deltacloud/state_machine.rb
incubator/deltacloud/trunk/server/lib/deltacloud/validation.rb
incubator/deltacloud/trunk/server/lib/drivers.rb
incubator/deltacloud/trunk/server/server.rb
Modified: incubator/deltacloud/trunk/server/config.ru
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/config.ru?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/config.ru (original)
+++ incubator/deltacloud/trunk/server/config.ru Tue Dec 7 15:31:14 2010
@@ -1,7 +1,25 @@
+#
+# Copyright (C) 2009,2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
require 'rubygems'
-require 'sinatra'
$:.unshift File.join(File.dirname(__FILE__), '.')
require 'server.rb'
+
run Sinatra::Application
Modified: incubator/deltacloud/trunk/server/deltacloud.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/deltacloud.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/deltacloud.rb (original)
+++ incubator/deltacloud/trunk/server/deltacloud.rb Tue Dec 7 15:31:14 2010
@@ -1,6 +1,25 @@
-# Add ./lib into load path
+#
+# Copyright (C) 2009,2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
$:.unshift File.join(File.dirname(__FILE__), 'lib')
+require 'drivers'
+
require 'deltacloud/base_driver'
require 'deltacloud/hardware_profile'
require 'deltacloud/state_machine'
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/backend_capability.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/backend_capability.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/backend_capability.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/backend_capability.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2009, 2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
module Deltacloud::BackendCapability
class Failure < StandardError
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/base_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/base_driver.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/base_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/base_driver.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009,2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_driver.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_mock_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_mock_driver.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_mock_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/ec2/ec2_mock_driver.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2009,2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
module RightAws
class MockEc2
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_client.rb Tue Dec 7 15:31:14 2010
@@ -1,7 +1,6 @@
require 'digest/md5'
require 'cgi'
require 'open-uri'
-require 'json'
class GoGridClient
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/mock/mock_driver.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rackspace/rackspace_client.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rackspace/rackspace_client.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rackspace/rackspace_client.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/rackspace/rackspace_client.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/hardware_profile.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2009,2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
module Deltacloud
class HardwareProfile
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/helpers.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2009,2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
require 'deltacloud/helpers/application_helper'
require 'deltacloud/helpers/conversion_helper'
require 'deltacloud/helpers/hardware_profiles_helper'
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,4 @@
-#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -17,6 +16,7 @@
# under the License.
# Methods added to this helper will be available to all templates in the application.
+
module ApplicationHelper
def bread_crumb
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/helpers/conversion_helper.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/helpers/conversion_helper.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/helpers/conversion_helper.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/helpers/conversion_helper.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,4 @@
-#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/helpers/hardware_profiles_helper.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/helpers/hardware_profiles_helper.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/helpers/hardware_profiles_helper.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/helpers/hardware_profiles_helper.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,20 @@
+# Copyright (C) 2009, 2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
module HardwareProfilesHelper
def format_hardware_property(prop)
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/method_serializer.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009,2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/base_model.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/base_model.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/base_model.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/base_model.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/blob.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -17,10 +17,12 @@
# under the License.
class Blob < BaseModel
+
#already has an id from basemodel (for the key)
attr_accessor :bucket
attr_accessor :content_length
attr_accessor :content_type
attr_accessor :last_modified
attr_accessor :content
+
end
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/bucket.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -21,4 +21,5 @@ class Bucket < BaseModel
attr_accessor :name
attr_accessor :size
attr_accessor :blob_list
+
end
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/image.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/image.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/image.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/image.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/instance.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -16,7 +16,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-
class Instance < BaseModel
attr_accessor :owner_id
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_profile.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_profile.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_profile.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/instance_profile.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -18,6 +18,7 @@
# Model to store the hardware profile applied to an instance together with
# any instance-specific overrides
+
class InstanceProfile < BaseModel
attr_accessor :memory
attr_accessor :storage
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/key.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/key.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/key.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/key.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/load_balancer.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/load_balancer.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/load_balancer.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/load_balancer.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/realm.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/realm.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/realm.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/realm.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_snapshot.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_snapshot.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_snapshot.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_snapshot.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_volume.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_volume.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_volume.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/models/storage_volume.rb Tue Dec 7 15:31:14 2010
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2009 Red Hat, Inc.
+# Copyright (C) 2009, 2010 Red Hat, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/state_machine.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/state_machine.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/state_machine.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/state_machine.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,20 @@
+#
+# Copyright (C) 2009,2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
module Deltacloud
class StateMachine
Modified: incubator/deltacloud/trunk/server/lib/deltacloud/validation.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/validation.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/validation.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/validation.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2009,2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
module Deltacloud::Validation
class Failure < StandardError
Modified: incubator/deltacloud/trunk/server/lib/drivers.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/drivers.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/drivers.rb (original)
+++ incubator/deltacloud/trunk/server/lib/drivers.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,20 @@
+# Copyright (C) 2009, 2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
module Deltacloud
DRIVERS = {
:ec2 => { :name => "EC2" },
Modified: incubator/deltacloud/trunk/server/server.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/server.rb?rev=1043093&r1=1043092&r2=1043093&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/server.rb (original)
+++ incubator/deltacloud/trunk/server/server.rb Tue Dec 7 15:31:14 2010
@@ -1,3 +1,20 @@
+# Copyright (C) 2009, 2010 Red Hat, Inc.
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you 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
+#
+# 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 limitations
+# under the License.
+
require 'sinatra'
require 'deltacloud'
require 'drivers'