Sha256: b51bf7da46a60b88a9758319ca8644ea7eab0425151f1959cf593673bedfd7fc

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 Bytes

Contents

module Lolp
  module Project
    def projects
      connection.get('projects')
    end

    def create_project(template, params = {})
      connection.post('projects', params.merge(haco_type: template))
    end

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

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

    def delete_custom_domain(domain, custom_domain)
      connection.delete("projects/#{domain}/custom-domains/#{custom_domain}")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lolp-0.2.0 lib/lolp/project.rb