summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/client_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/network/client_request.rb')
-rw-r--r--lib/puppet/network/client_request.rb40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/puppet/network/client_request.rb b/lib/puppet/network/client_request.rb
index f914bad09..e3df471f4 100644
--- a/lib/puppet/network/client_request.rb
+++ b/lib/puppet/network/client_request.rb
@@ -1,29 +1,29 @@
module Puppet::Network # :nodoc:
- # A struct-like class for passing around a client request. It's mostly
- # just used for validation and authorization.
- class ClientRequest
- attr_accessor :name, :ip, :authenticated, :handler, :method
+ # A struct-like class for passing around a client request. It's mostly
+ # just used for validation and authorization.
+ class ClientRequest
+ attr_accessor :name, :ip, :authenticated, :handler, :method
- def authenticated?
- self.authenticated
- end
+ def authenticated?
+ self.authenticated
+ end
- # A common way of talking about the full call. Individual servers
- # are responsible for setting the values correctly, but this common
- # format makes it possible to check rights.
- def call
- raise ArgumentError, "Request is not set up; cannot build call" unless handler and method
+ # A common way of talking about the full call. Individual servers
+ # are responsible for setting the values correctly, but this common
+ # format makes it possible to check rights.
+ def call
+ raise ArgumentError, "Request is not set up; cannot build call" unless handler and method
- [handler, method].join(".")
- end
+ [handler, method].join(".")
+ end
- def initialize(name, ip, authenticated)
- @name, @ip, @authenticated = name, ip, authenticated
- end
+ def initialize(name, ip, authenticated)
+ @name, @ip, @authenticated = name, ip, authenticated
+ end
- def to_s
- "#{self.name}(#{self.ip})"
- end
+ def to_s
+ "#{self.name}(#{self.ip})"
end
+ end
end