Skip to content

Commit

Permalink
Fix barclamp initialization and unix file format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
galthaus committed Aug 3, 2012
1 parent a8c8bdd commit 14153b4
Showing 1 changed file with 37 additions and 32 deletions.
69 changes: 37 additions & 32 deletions crowbar_framework/app/controllers/apachehadoop_controller.rb
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
#
# Barclamp: apachehadoop
# Recipe: ApacheHadoop_controller.rb
#
# Copyright (c) 2012 Dell Inc.
#
# 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
#
# 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.
#

class ApachehadoopController < BarclampController
def initialize
@service_object = ApachehadoopService.new logger
end

def index
@title = I18n.t('title', :scope=>'barclamp.apachehadoop.index')
super
end

end


#
# Barclamp: apachehadoop
# Recipe: ApacheHadoop_controller.rb
#
# Copyright (c) 2012 Dell Inc.
#
# 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
#
# 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.
#

class ApachehadoopController < BarclampController
before_filter :set_service_object

def set_service_object
@service_object = ApachehadoopService.new logger
@service_object.bc_name = @bc_name
end

private :set_service_object

def index
@title = I18n.t('title', :scope=>'barclamp.apachehadoop.index')
super
end

end


0 comments on commit 14153b4

Please sign in to comment.