curl-installed

Example:

# Install the 'curl' package using the system package manager.
- curl-installed

Description

Install the 'curl utility.

Variables

Name Type Default Description

pkg_mgr

string auto

the package manager to use

Examples

Example 1

Install the 'curl' package using the system package manager.

Code
- curl-installed

Example 2

Install the 'curl' package using the 'nix' package manager.

Code
- curl-installed:
    pkg_mgr: nix

Code

doc:
  short_help: Install the curl package.
  help: |
    Install the '[curl](https://curl.haxx.se/) utility.
  examples:
  - title: Install the 'curl' package using the system package manager.
  - title: Install the 'curl' package using the 'nix' package manager.
    vars:
      pkg_mgr: nix

args:
  pkg_mgr:
    doc:
      short_help: the package manager to use
    type: string
    default: auto
    required: false
    cli:
      metavar: PKG-MGR

meta:
  tags:
  - sshpass
  - install
  - pkg

frecklets:
- packages-installed:
    become: "{{:: pkg_mgr | false_if_equal('conda') ::}}"
    packages:
    - name: curl
      pkg_mgr: '{{:: pkg_mgr ::}}'
frecklecute curl-installed --help

Usage: frecklecute curl-installed [OPTIONS]

  Install the '[curl](https://curl.haxx.se/) utility.

Options:
  --pkg-mgr PKG-MGR  the package manager to use
  --help             Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.curl_installed.CurlInstalled
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class CurlInstalled(AutoPycklet):
    """Install the '[curl](https://curl.haxx.se/) utility.

       Args:
         pkg_mgr: the package manager to use

    """

    FRECKLET_ID = "curl-installed"

    pkg_mgr: str = None


    def __post_init__(self):
        super(CurlInstalled, self).__init__(var_names=["pkg_mgr"])


frecklet_class = CurlInstalled
# -*- coding: utf-8 -*-


#
# module path: pycklets.curl_installed.CurlInstalled
#


from pyckles import AutoPycklet

class CurlInstalled(AutoPycklet):
    """Install the '[curl](https://curl.haxx.se/) utility.

       Args:
         pkg_mgr: the package manager to use

    """

    FRECKLET_ID = "curl-installed"

    def __init__(self, pkg_mgr="auto"):

        super(CurlInstalled, self).__init__(var_names=["pkg_mgr"])
        self._pkg_mgr = pkg_mgr

    @property
    def pkg_mgr(self):
        return self._pkg_mgr

    @pkg_mgr.setter
    def pkg_mgr(self, pkg_mgr):
        self._pkg_mgr = pkg_mgr



frecklet_class = CurlInstalled