Class: Mushikago::Mitsubachi::ScriptDeployRequest
- Inherits:
-
Http::MultipartPostRequest
- Object
- Http::Request
- Http::MultipartRequest
- Http::MultipartPostRequest
- Mushikago::Mitsubachi::ScriptDeployRequest
- Defined in:
- lib/mushikago/mitsubachi/script_deploy_request.rb
Constant Summary
Constants inherited from Http::MultipartRequest
Http::MultipartRequest::CR, Http::MultipartRequest::EOL, Http::MultipartRequest::LF
Instance Attribute Summary
Attributes inherited from Http::Request
#headers, #host, #params, #port
Instance Method Summary collapse
-
#initialize(project_name, file_or_file_name, options = {}) ⇒ ScriptDeployRequest
constructor
A new instance of ScriptDeployRequest.
- #path ⇒ Object
Methods inherited from Http::MultipartPostRequest
Methods included from Auth::Signature
#add_signature!, #string_to_sign
Methods inherited from Http::MultipartRequest
#multipart_body, #to_http_request
Methods inherited from Http::Request
#[], #[]=, add_param, #to_http_request, #url_encoded_params
Constructor Details
#initialize(project_name, file_or_file_name, options = {}) ⇒ ScriptDeployRequest
Returns a new instance of ScriptDeployRequest.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/mushikago/mitsubachi/script_deploy_request.rb', line 10 def initialize project_name, file_or_file_name, ={} super() self.project_name = project_name if(file_or_file_name.kind_of?(File)) self.file = file_or_file_name else self.file = File.new(file_or_file_name.to_s) end self.script_name = [:script_name] || file.path end |
Instance Method Details
#path ⇒ Object
5 |
# File 'lib/mushikago/mitsubachi/script_deploy_request.rb', line 5 def path; '/1/mitsubachi/script/deploy' end |