Forge Home

translate_shell

module to install https://github.com/soimort/translate-shell

6,152 downloads

5,648 latest version

4.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.5 (latest)
  • 0.1.4
  • 0.1.3
  • 0.1.1
  • 0.1.0
released Jul 28th 2017
This version is compatible with:
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'abuxton-translate_shell', '0.1.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add abuxton-translate_shell
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install abuxton-translate_shell --version 0.1.5

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

abuxton/translate_shell — version 0.1.5 Jul 28th 2017

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with translate_shell
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

installs https://github.com/soimort/translate-shell on supported OS

Module Description

Deploys using https://github.com/soimort/translate-shell#option-1-direct-download method to create executable in path, see https://github.com/soimort/translate-shell/blob/develop/README.md for functionality

Setup

What translate_shell affects

  • provides capability to translate shell based documentation or inline interpriter using Google api

Setup Requirements OPTIONAL

You can copy manually install trans by adding executable the files dir to the module and using the puppet source to distribute it puppet://modules/translate_shell/trans or class { 'translate_shell': source => 'puppet://modules/translate_shell/trans', }

Beginning with translate_shell

include translate_shell class {'translate_shell': bin_dir => '/path/to/chosen/bin/dir', #default /usr/local/bin/ }

Usage

uses ISO-639-1 codes supported by Google https://cloud.google.com/translate/docs/languages

Simple module to install executable of translate-shell trans CLI usage trans -t fr hello #-t is target language code ie french is fr

usage with puppet man pages or help pages for example puppet describe file >file.txt && trans -t fr -b -i file.txt,

Reference

Limitations

only tested on Rhel, centos and Darwin

Development

feel free to update to add homebrew support, Debian etc

Release Notes/Contributors/Etc Optional