Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add discard_output to RunRequest/SpawnRequest

  • Loading branch information...
commit 65877e4378eeb6e10512749ae63ac3c2993cac4f 1 parent 98f5e78
Alex Suraci and Maria Shaldibina authored
View
2  warden-protocol/lib/warden/protocol/pb.rb
@@ -424,6 +424,7 @@ class RunRequest
required :script, :string, 2
optional :privileged, :bool, 3, :default => false
optional :rlimits, ResourceLimits, 4
+ optional :discard_output, :bool, 5, :default => false
end
@@ -446,6 +447,7 @@ class SpawnRequest
required :script, :string, 2
optional :privileged, :bool, 3, :default => false
optional :rlimits, ResourceLimits, 4
+ optional :discard_output, :bool, 5, :default => false
end
View
2  warden-protocol/lib/warden/protocol/pb/run.proto
@@ -19,6 +19,8 @@ message RunRequest {
required string script = 2;
optional bool privileged = 3 [default = false];
optional ResourceLimits rlimits = 4;
+
+ optional bool discard_output = 5 [default = false];
}
message RunResponse {
View
2  warden-protocol/lib/warden/protocol/pb/spawn.proto
@@ -30,6 +30,8 @@ message SpawnRequest {
required string script = 2;
optional bool privileged = 3 [default = false];
optional ResourceLimits rlimits = 4;
+
+ optional bool discard_output = 5 [default = false];
}
message SpawnResponse {
View
5 warden-protocol/spec/run_spec.rb
@@ -26,6 +26,11 @@ module Warden::Protocol
it_should_default_to false
end
+ field :discard_output do
+ it_should_be_optional
+ it_should_default_to false
+ end
+
field :rlimits do
it_should_be_optional
View
5 warden-protocol/spec/spawn_spec.rb
@@ -25,6 +25,11 @@
it_should_default_to false
end
+ field :discard_output do
+ it_should_be_optional
+ it_should_default_to false
+ end
+
it "should be populated with ResourceLimits object" do
request.rlimits = Warden::Protocol::ResourceLimits.new
request.should be_valid
Please sign in to comment.
Something went wrong with that request. Please try again.