lib/sample_cmdlet_patterns/commands/platform_attributes.rb
# Execute PlatformAttributes subcommand taking input from
# a input stream and writing to output stream
#
# sample: output.puts 'OK'
Execute PlatformAttributes subcommand taking input from
a input stream and writing to output stream


Execute PlatformAttributes subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        values = [
          ['Platform CPU', platform.cpu],
          ['Platform OS', platform.os],
          ['Platform Version', platform.version],
          ['Platform - Windows?', platform.windows?],
          ['Platform - Unix?', platform.unix?],
          ['Platform - Linux?', platform.linux?],
          ['Platform - Mac?', platform.mac?],
        ]
        pretty_table('Operating system properites?', %w[title value], values)
        :gui
      end
def execute ( input : $stdin , output : $stdout ) values = [ [ 'Platform CPU' , platform . cpu ] , [ 'Platform OS' , platform . os ] , [ 'Platform Version' , platform . version ] , [ 'Platform - Windows?' , platform . windows? ] , [ 'Platform - Unix?' , platform . unix? ] , [ 'Platform - Linux?' , platform . linux? ] , [ 'Platform - Mac?' , platform . mac? ] , ] pretty_table ( 'Operating system properites?' , %w[ title value ] , values ) :gui end
Execute PlatformAttributes subcommand taking input from
a input stream and writing to output stream
Execute PlatformAttributes subcommand taking input from a input stream and writing to output stream
input
output