def motd(dir = Dir.pwd, options = {})
      config = FalkorLib::Config::Bootstrap::DEFAULTS[:motd].merge!(::ActiveSupport::HashWithIndifferentAccess.new(options).symbolize_keys)
      path = normalized_path(dir)
      erbfile = File.join( FalkorLib.templates, 'motd', 'motd.erb')
      outfile = (config[:file] =~ /^\//) ? config[:file] : File.join(path, config[:file])
      info "Generate a motd (Message of the Day) file '#{outfile}'"
      FalkorLib::Config::Bootstrap::DEFAULTS[:motd].keys.each do |k|
        next if [:file, :width].include?(k)
        config[k.to_sym] = ask( "\t" + format("Message of the Day (MotD) %-10s", k.to_s), config[k.to_sym]) unless options[:no_interaction]
      end
      config[:os] = Facter.value(:lsbdistdescription) if Facter.value(:lsbdistdescription)
      config[:os] = "Mac " + Facter.value(:sp_os_version) if Facter.value(:sp_os_version)
      unless options[:nodemodel]
        config[:nodemodel] = Facter.value(:sp_machine_name) if Facter.value(:sp_machine_name)
        config[:nodemodel] += " (#{Facter.value(:sp_cpu_type)}" if Facter.value(:sp_cpu_type)
        config[:nodemodel] += " " + Facter.value(:sp_current_processor_speed) if Facter.value(:sp_current_processor_speed)
        config[:nodemodel] += " #{Facter.value(:sp_number_processors)} cores )" if Facter.value(:sp_number_processors)
      end
      config[:nodemodel] = Facter.value(:sp_machine_name) unless options[:nodemodel]
      write_from_erb_template(erbfile, outfile, config, options)
    end
def motd(dir = Dir.pwd, options = {})
      config = FalkorLib::Config::Bootstrap::DEFAULTS[:motd].merge!(::ActiveSupport::HashWithIndifferentAccess.new(options).symbolize_keys)
      path = normalized_path(dir)
      erbfile = File.join( FalkorLib.templates, 'motd', 'motd.erb')
      outfile = (config[:file] =~ /^\//) ? config[:file] : File.join(path, config[:file])
      info "Generate a motd (Message of the Day) file '#{outfile}'"
      FalkorLib::Config::Bootstrap::DEFAULTS[:motd].keys.each do |k|
        next if [:file, :width].include?(k)
        config[k.to_sym] = ask( "\t" + format("Message of the Day (MotD) %-10s", k.to_s), config[k.to_sym]) unless options[:no_interaction]
      end
      config[:os] = Facter.value(:lsbdistdescription) if Facter.value(:lsbdistdescription)
      config[:os] = "Mac " + Facter.value(:sp_os_version) if Facter.value(:sp_os_version)
      unless options[:nodemodel]
        config[:nodemodel] = Facter.value(:sp_machine_name) if Facter.value(:sp_machine_name)
        config[:nodemodel] += " (#{Facter.value(:sp_cpu_type)}" if Facter.value(:sp_cpu_type)
        config[:nodemodel] += " " + Facter.value(:sp_current_processor_speed) if Facter.value(:sp_current_processor_speed)
        config[:nodemodel] += " #{Facter.value(:sp_number_processors)} cores )" if Facter.value(:sp_number_processors)
      end
      config[:nodemodel] = Facter.value(:sp_machine_name) unless options[:nodemodel]
      write_from_erb_template(erbfile, outfile, config, options)
    end
versionfile
 motd 
 Generate a new motd (Message of the Day) file
 Supported options:
  * :force    [boolean] force action
  * :title    [string]  title of the motd (in figlet)
  * :support  [string]  email address to use for  getting support
  * :hostname [string]  hostname of the server to mention in the motd
  * :width    [number]  width of the line used