Skip to content

Commit

Permalink
Merge pull request crowbar#17 from dpaterson/pull-req-release-rails3a…
Browse files Browse the repository at this point in the history
…nddb-master-92b3b5d11e

re-factor out intialize method in controllers [4/22]
  • Loading branch information
galthaus committed Aug 2, 2012
2 parents ea34370 + 92b3b5d commit 28b2a36
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions crowbar_framework/app/controllers/ipmi_controller.rb
@@ -1,20 +1,24 @@
# Copyright 2011, Dell
#
# 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 IpmiController < BarclampController
def initialize
@service_object = IpmiService.new logger
end
end
# Copyright 2011, Dell
#
# 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 IpmiController < BarclampController
before_filter :set_service_object

def set_service_object
@service_object = IpmiService.new logger
end

private :set_service_object
end

0 comments on commit 28b2a36

Please sign in to comment.