Giter Club home page Giter Club logo

puppi's Introduction

Puppi on Ruby - Experimental version of Puppi in Ruby

<img src=“https://badge.fury.io/rb/puppi.png” alt=“Gem Version” /> <img src=“https://secure.travis-ci.org/zertico/puppi.png” /> <img src=“https://gemnasium.com/zertico/puppi.png” alt=“Dependency Status” /> <img src=“https://coveralls.io/repos/zertico/puppi/badge.png?branch=master” alt=“Coverage Status” /> <img src=“https://codeclimate.com/github/zertico/puppi.png” />

It’s supposed to replace the existing puppi command written in bash.

README (DRIVEN DEVELOPMENT)

puppi <action> <project_name> [ -options ]

The puppi command has these possibile actions:

  • puppi init project_name

    : First time initialization of the defined project

  • puppi deploy project_name

    : Deploys the defined project

  • puppi rollback project_name

    : Rollback to a previous deploy state

  • puppi check

    : Runs project specific and host wide checks

  • puppi log

    : Tails system wide or project specific logs

  • puppi info topic_name

    : Show system information (for all or only the specified topic)

  • puppi todo

    : Show things to do (or done) manually on the system

And these options:

  • -f - Force puppi commands execution flow also on CRITICAL errors

  • -i - Interactively ask confirmation for every step

  • -t - Test mode. Just show the commands that should be executed

  • -d <yes|full> - Debug mode. Show debug of what is done.

  • -r <yes|no|fail> - Enable reporting: yes/no/only on failures. Default depends on action

  • -s <yes|no|fail> - Show output: yes/no/only for failures. Default: yes

  • -g <pattern> - Grep command output with the selected pattern

  • -o “parameter=value parameter2=value2” - Set manual options to override defaults

Files and directories

  • /etc/puppi/data (datadir) contains one yaml file for each Puppet class or defines that uses the puppi::ze define.

This yaml contains all the variables provided by the class / define and has this naming layout: helper_module.yaml. Where helper is the name of the helper file to use to manage the variables provided in the file and module is the name of the module or class or define that has created the yaml via puppi::ze

  • /etc/puppi/helpers contains the helpers file (created by puppi::helper): a Yaml that describes, for each puppi action, what commands to run and the names of the variables to use (as named in the /etc/puppi/data/helper_module.yaml files)

Mantainers

@fernandes

Contributing

  1. Fork it

  2. Create your feature branch (‘git checkout -b my-new-feature`)

  3. Commit your changes (‘git commit -am ’Added some feature’‘)

  4. Push to the branch (‘git push origin my-new-feature`)

  5. Create new Pull Request

puppi's People

Contributors

fernandes avatar plribeiro3000 avatar alvagante avatar

Watchers

Felipe Mammoli avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.