3
# Copyright 2008 Amazon.com, Inc. or its affiliates. All Rights
4
# Reserved. Licensed under the Amazon Software License (the
5
# "License"). You may not use this file except in compliance with the
6
# License. A copy of the License is located at
7
# http://aws.amazon.com/asl or in the "license" file accompanying this
8
# file. This file is distributed on an "AS IS" BASIS, WITHOUT
9
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
10
# the License for the specific language governing permissions and
11
# limitations under the License.
14
require 'ec2/platform'
20
@@uname ||= OpenStruct.new
22
@@uname.all ||= `uname -a`.strip
25
@@uname.platform ||= `uname -i`.strip
28
@@uname.nodename ||= `uname -n`.strip
31
@@uname.processor ||= `uname -p`.strip
34
@@uname.release ||= `uname -r`.strip
37
@@uname.os ||= `uname -s`.strip
40
@@uname.machine ||= `uname -m`.strip
50
include EC2::Platform::Linux
51
puts "Uname = #{Uname.all.inspect}"