Class: GitHandler::Request
- Inherits:
-
Object
- Object
- GitHandler::Request
- Defined in:
- lib/git_handler/request.rb
Instance Attribute Summary collapse
-
#args ⇒ Array
readonly
Request arguments.
-
#command ⇒ String
readonly
Git command.
-
#env ⇒ Hash
readonly
Request environment.
-
#read ⇒ Boolean
readonly
Read command flag.
-
#remote_ip ⇒ String
readonly
Remote IP address.
-
#repo ⇒ Boolean
readonly
Git repository name.
-
#repo_path ⇒ String
readonly
Repository path.
-
#write ⇒ Boolean
readonly
Write command flag.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Request
constructor
Initialize a new Request instance.
Constructor Details
#initialize(options = {}) ⇒ Request
Initialize a new Request instance
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/git_handler/request.rb', line 31 def initialize(={}) @remote_ip = [:remote_ip] @args = [:args] @env = [:env] @command = [:command] @read = [:read] @write = [:write] @repo = [:repo] @repo_path = [:repo_path] end |
Instance Attribute Details
#args ⇒ Array (readonly)
Returns Request arguments.
9 10 11 |
# File 'lib/git_handler/request.rb', line 9 def args @args end |
#command ⇒ String (readonly)
Returns Git command.
15 16 17 |
# File 'lib/git_handler/request.rb', line 15 def command @command end |
#env ⇒ Hash (readonly)
Returns Request environment.
12 13 14 |
# File 'lib/git_handler/request.rb', line 12 def env @env end |
#read ⇒ Boolean (readonly)
Returns Read command flag.
18 19 20 |
# File 'lib/git_handler/request.rb', line 18 def read @read end |
#remote_ip ⇒ String (readonly)
Returns Remote IP address.
6 7 8 |
# File 'lib/git_handler/request.rb', line 6 def remote_ip @remote_ip end |
#repo ⇒ Boolean (readonly)
Returns Git repository name.
24 25 26 |
# File 'lib/git_handler/request.rb', line 24 def repo @repo end |
#repo_path ⇒ String (readonly)
Returns Repository path.
27 28 29 |
# File 'lib/git_handler/request.rb', line 27 def repo_path @repo_path end |
#write ⇒ Boolean (readonly)
Returns Write command flag.
21 22 23 |
# File 'lib/git_handler/request.rb', line 21 def write @write end |