Sha256: 6aa2052548491540b49c0e6bf8011ebe5ec999b2755940d738c2e916d74589f8

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 Bytes

Contents

require 'httparty'
module YkCommand
  class Request
    include HTTParty
    base_uri 'http://127.0.0.1:9988/'

    # base_uri 'http://10.30.106.143:9988/'
    # base_uri 'http://10.30.80.113:9988'

    headers 'Content-Type' => 'application/json'



    def upload_app_dependency(project_id,data)
      self.class.post('/dependency/addDependency', query: { "projectId" => project_id },body: data)
    end

    def get_project_info(app_project_name)
      self.class.get('/project/projectByName', query: { "name" => app_project_name } )
    end

    def upload_app(app_list_data)
      self.class.post('/project/updateAllAppProjects',body: {'data' => app_list_data}.to_json)
    end

    def upload_component(data)
      self.class.post('/project/updateAllComponents',body: {'data' => data}.to_json)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yk_command-0.5.2 lib/yk_command/analyze/request.rb