GitList
Repositories
Help
Report an Issue
rcm
Code
Commits
Branches
Tags
Search
Tree:
22644c9
Branches
Tags
master
rcm
objects
rcm_file.rb
Refactoring. Adding pkg mgmt.
Dev
commited
22644c9
at 2018-06-15 07:44:47
rcm_file.rb
Blame
History
Raw
module RCM class File attr_accessor :path, :owner, :group, :mode, :checksum def ==(other) return false unless other.is_a?(RCM::File) @path == other.path && @owner == other.owner && @group == other.group && @mode == other.mode && @checksum == other.checksum end def initialize(path, owner, group, mode, checksum) @path = path @owner = owner @group = group @mode = mode @checksum = checksum end def to_s "Path = #{@path}\n" + "Owner = #{@owner}\n" + "Group = #{@group}\n" + "Mode = #{@mode}\n" + "Checksum = #{@checksum}" end end end