Changeset 46440b6 in rattail-fabric2


Ignore:
Timestamp:
11/01/2022 06:42:11 PM (3 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
7ce3aae
Parents:
614fd92
Message:

Add basic composer.install() function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail_fabric2/composer.py

    r614fd92 r46440b6  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2019 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    2525"""
    2626
    27 from __future__ import unicode_literals, absolute_import
    28 
    29 from rattail_fabric2 import make_deploy, exists
     27from rattail_fabric2 import apt, make_deploy, exists
    3028
    3129
    3230deploy = make_deploy(__file__)
     31
     32
     33def install(c, with_apt=True):
     34    if with_apt:
     35        apt.install(c, 'composer')
     36    else:
     37        install_globally(c)
    3338
    3439
Note: See TracChangeset for help on using the changeset viewer.