Homebrew-file module index

Brew-file: Manager for packages of Homebrew https://github.com/rcmdnk/homebrew-file

requirement: Python 2.7 or later

class BrewFile.BrewFile

Main class of Brew-file.

ask_yn(question)

Helper for yes/no.

cask_upgrade()

Upgrade cask applications

cat_brewfile()

Cat brewfiles

check_brew_cmd()

Check Homebrew

check_cask()

Check applications for Cask

check_cask_cmd(force=False)

Check cask is installed or not

check_gem_cmd(force=False)

Check gem is installed or not

check_github_repo()

helper to check and create GitHub repository.

check_input_file()

Check input file

check_mas_cmd(force=False)

Check mas is installed or not

check_pip_cmd(force=False)

Check pip is installed or not

check_repo()

Check input file for GitHub repository.

clean_list()

Remove duplications between brewinfo.list to extra files’ input

clean_non_request()

Clean up non requested packages.

cleanup()

Clean up.

edit_brewfile()

Edit brewfiles

execute()

Main execute function

find_app(app, taps, casks, nonapp_casks, casks_noinst, nonapp_casks_noinst)

Helper function for Cask

find_brew_app(name, tap)

Helper function for Cask to find app installed by brew install

get_appstore_list()

Get AppStore Application List

get_cask_list(force=False)

Get Cask List

get_files(is_print=False)

Get Brewfiles

get_list()

Get List

initialize(check=True, check_input=True)

Initialize Brewfile

install()

Install

make_pack_deps()

Make package dependencies

parse_env_opts(env_var, base_opts=None)

Returns a dictionary parsed from an environment variable

remove(path)

Helper to remove file/directory.

repo_file()

Helper to build Brewfile path for the repository.

repomgr(cmd='')

Helper of repository management.

set_args(**kw)

Set arguments.

set_brewfile_local()

Set Brewfile to local file

set_brewfile_repo()

Set Brewfile repository

class BrewFile.BrewHelper(opt)

Helper functions for BrewFile.

proc(cmd, print_cmd=True, print_out=True, exit_on_err=True, separate_err=False, print_err=True, verbose=1, env={})

Get process output.

class BrewFile.BrewInfo(helper, filename='')

Homebrew information storage.

get_installed(package, package_info='')

get installed version of brew package

get_option(package, package_info='')

get install options from brew info

get_tap(tap)

Helper for tap configuration file

get_tap_path(tap)

Get tap path

class BrewFile.Tee(out1, out2=<open file '<stdout>', mode 'w'>, use2=True)

Module to write out in two ways at once.

close()

Close output files.

flush()

Flush the output

write(text)

Write w/o line break.

writeln(text)

Write w/ line break.

BrewFile.my_decode(word)

Decode when python3 is used.

BrewFile.my_input(word)

Input method compatibility.

BrewFile.open_output_file(name, mode='w')

Helper function to open a file even if it doesn’t exist.