Class: SVNx::StatusExec
- Inherits:
-
Object
- Object
- SVNx::StatusExec
- Defined in:
- lib/svnx/status/command.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
Instance Method Summary collapse
-
#initialize(args) ⇒ StatusExec
constructor
A new instance of StatusExec.
Constructor Details
#initialize(args) ⇒ StatusExec
Returns a new instance of StatusExec.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/svnx/status/command.rb', line 29 def initialize args path = args[:path] rootpath = nil while true begin inf = InfoExec.new(path: path).entry rootpath = inf.wc_root break rescue path = Pathname.new(path).dirname.to_s break if path == '/' end end cmd = StatusCommand.new StatusCommandArgs.new(args) @entries = SVNx::Status::Entries.new(xmllines: cmd.execute, rootpath: rootpath) end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
27 28 29 |
# File 'lib/svnx/status/command.rb', line 27 def entries @entries end |