module Lab

  module Subcommands

    class Repository < Thor

      desc "list", "List repositories"
      def list
        Gitlab.projects.each do |project|
          puts project.name
        end
      end

      desc "create NAME", "Create a new repository"
      def create
        Gitlab.create_project name
      end

    end

  end

end

module Lab

  module Subcommands

    class Repository < Thor

      desc "list", "List repositories"
      def list
        Gitlab.projects.each do |project|
          puts project.name
        end
      end

      desc "create NAME", "Create a new repository"
      def create name
        Gitlab.create_project name
      end

    end

  end

end

Fix a bug that caused creating projects to fail
Fix a bug that caused creating projects to fail
