How to install pin
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install pin
Lastest release
pin is a set of Python scripts that help you streamline your use of deployment tools.
### Installation
$ sudo apt-get install python-yaml $ sudo pip install straight.plugin $ sudo python setup.py install
### Usage
To use pin you will need to source it's shell-script which is installed under the name pin.sh
$ source pin.sh
The pin command will now be available to you. Lets try out pin init in a new directory.
$ mkdir /tmp/testing $ cd /tmp/testing $ pin init Creating .pin directory structure... pin project initialized in: /tmp/testing $
pin has created a project directory located at /tmp/testing/.pin/ Generally, commands that operate upon your project can be used *anywhere* below the project's root directory. pin doesn't do much on it's own but plugins can add new functionality to existing commands or new commands all together. Let's go ahead and install the pin-venv plugins to give pin the ability to work with VirtualEnv.
$ sudo pip install pin-venv ... $ rm -fdr .pin/ $ pin init --venv Creating .pin directory structure... Creating virtualenv... pin project initialized in: /tmp/testing $ ls .pin/env bin include lib $
### Core Commands
pin init : Initializes the .pin directory and registers the path with ~/.pinconf/registry.yml
pin destroy : Deletes the project's .pin directory and unregisters the project path. Only works from inside a project tree.
pin go <project-name> : Teleports to the project root if a name is provided. If no name is provided a menu will be presented.
### Plugins
Plugins to extend pin's core functionality can be found at the [Pin Cushion](https://github.com/dustinlacewell/pin/wiki/Pin-Cushion)