Sha256: 0d0ef7385b5e07ec0e26169e0bae97afea19d98f261fcb0155097111d7d7821c

Contents?: true

Size: 285 Bytes

Versions: 4

Compression:

Stored size: 285 Bytes

Contents

module Rancher
  module ManagementApi
    class Manager
      attr_reader :conn

      def initialize(conn = nil, host: nil)
        @conn = conn || ManagementApi.connection(host)
      end

      def create_project(name)
        Project.create(conn, name)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rancher-management_api-0.3.2 lib/rancher/management_api/manager.rb
rancher-management_api-0.3.0 lib/rancher/management_api/manager.rb
rancher-management_api-0.2.0 lib/rancher/management_api/manager.rb
rancher-management_api-0.1.1 lib/rancher/management_api/manager.rb