文件操作 - hellolib.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/gettext-3.4.9/samples/cgi/hellolib.rb
编辑文件内容
#!/usr/bin/ruby # hellolib.rb # # Copyright (C) 2005-2009 Masao Mutoh # # This file is distributed under the same # license as gettext. # require 'gettext' class HelloLib include GetText bindtextdomain("hellolib", "locale") def hello _("This message is from hellolib.") end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件