Sha256: 1ac87935b24ddf3387fc92df6790a75af457451023acba8b3c7e41808e4a8691

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

module Lolp
  class Client
    module Project
      def projects
        get('v1/projects')
      end

      def project(name)
        get("v1/projects/#{name}")
      end

      def create_project(type, params = {})
        post('v1/projects', params.merge(type: type))
      end

      def delete_project(name)
        delete("v1/projects/#{name}")
      end

      def create_custom_domain(project_domain, custom_domain)
        post("v1/projects/#{project_domain}/custom-domains", domain: custom_domain)
      end

      def delete_custom_domain(project_domain, custom_domain)
        delete("v1/projects/#{project_domain}/custom-domains/#{custom_domain}")
      end

      def project_storage(name)
        get("v1/projects/#{name}/storage")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lolp-0.6.0 lib/lolp/client/project.rb