Class: Copernicium::UIComm

Inherits:
Object
  • Object
show all
Defined in:
lib/ui.rb

Overview

Communication object that will pass commands to backend modules also used in unit test to make sure command is being parsed ok rev - revision indicator (commit #, branch name, HEAD, etc.) repo - URL/path to a remote repository

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command: nil, files: nil, rev: nil, cmt_msg: nil, repo: nil, opts: nil) ⇒ UIComm

Returns a new instance of UIComm.



15
16
17
18
19
20
21
22
23
# File 'lib/ui.rb', line 15

def initialize(command: nil, files: nil, rev: nil,
               cmt_msg: nil, repo: nil, opts: nil)
  @cmt_msg = cmt_msg
  @command = command
  @files = files
  @opts = opts
  @repo = repo
  @rev = rev
end

Instance Attribute Details

#cmt_msgObject

Returns the value of attribute cmt_msg.



14
15
16
# File 'lib/ui.rb', line 14

def cmt_msg
  @cmt_msg
end

#commandObject

Returns the value of attribute command.



14
15
16
# File 'lib/ui.rb', line 14

def command
  @command
end

#filesObject

Returns the value of attribute files.



14
15
16
# File 'lib/ui.rb', line 14

def files
  @files
end

#optsObject

Returns the value of attribute opts.



14
15
16
# File 'lib/ui.rb', line 14

def opts
  @opts
end

#repoObject

Returns the value of attribute repo.



14
15
16
# File 'lib/ui.rb', line 14

def repo
  @repo
end

#revObject

Returns the value of attribute rev.



14
15
16
# File 'lib/ui.rb', line 14

def rev
  @rev
end