Sha256: 110a0cd35cabbb4f42a5ecfc632e8012e1336c110f7bbae40e64698cf309f171

Contents?: true

Size: 833 Bytes

Versions: 58

Compression:

Stored size: 833 Bytes

Contents

#
# Author:: Adam Jacob (<adam@opscode.com>)
# Copyright:: Copyright (c) 2008 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# 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.
#

provides "fqdn", "domain"

require_plugin "#{os}::hostname"

# Domain is everything after the first dot
if fqdn
  fqdn =~ /.+?\.(.*)/
  domain $1 
end

Version data entries

58 entries across 58 versions & 3 rubygems

Version Path
rightscale-ohai-0.3.3.1 lib/ohai/plugins/hostname.rb
rightscale-ohai-0.3.3.2 lib/ohai/plugins/hostname.rb
rightscale-ohai-0.3.3.3 lib/ohai/plugins/hostname.rb
kurchatov-0.0.5.pre5 lib/ohai/plugins/hostname.rb
kurchatov-0.0.5.pre4 lib/ohai/plugins/hostname.rb
kurchatov-0.0.5.pre2 lib/ohai/plugins/hostname.rb
kurchatov-0.0.5.pre1 lib/ohai/plugins/hostname.rb
kurchatov-0.0.4 lib/ohai/plugins/hostname.rb
kurchatov-0.0.4d lib/ohai/plugins/hostname.rb
kurchatov-0.0.4c lib/ohai/plugins/hostname.rb
kurchatov-0.0.4b lib/ohai/plugins/hostname.rb
kurchatov-0.0.3 lib/ohai/plugins/hostname.rb
kurchatov-0.0.3b lib/ohai/plugins/hostname.rb
kurchatov-0.0.3a lib/ohai/plugins/hostname.rb
kurchatov-0.0.2 lib/ohai/plugins/hostname.rb
kurchatov-0.0.2b lib/ohai/plugins/hostname.rb
kurchatov-0.0.1 lib/ohai/plugins/hostname.rb
ohai-6.20.0 lib/ohai/plugins/hostname.rb
ohai-6.20.0.rc.1 lib/ohai/plugins/hostname.rb
ohai-6.18.0 lib/ohai/plugins/hostname.rb