2017 © Pedro Peláez
 

library modman

Module Manager

image

colinmollenhour/modman

Module Manager

  • Tuesday, October 31, 2017
  • by colinmollenhour
  • Repository
  • 70 Watchers
  • 704 Stars
  • 22,860 Installations
  • Shell
  • 4 Dependents
  • 3 Suggesters
  • 173 Forks
  • 21 Open issues
  • 10 Versions
  • 11 % Grown

The README.md

modman (Module Manager)

Developing extensions for software that doesn't allow you to separate your files from core files, and keeping that extension under version control and making it easy to deploy is now much, much easier. Development of this script was inspired by Magento which forces you to mix your extension files all throughout the core code directories. With modman, you can specify in a text file where you want your directories and files to be mapped to, and it will maintain symlinks for you so that your code is easy to hack and deploy., (*1)

All of your cloned/checked-out modules will be kept in a directory named .modman in the location where you run modman init., (*2)

Requirements

  • Linux/Unix or OSX (not cygwin, see Windows Users below)
  • bash
  • Common utilities available in your PATH: grep (POSIX), find, ln, cp, basename, dirname
  • Web server must follow symlinks
  • git and/or subversion are optional (not required for "deploy" command)

Magento Users

If using template files in a modman module, you must either:, (*3)

Option 1:

Use a patched version of Mage/Core/Block/Template.php. This gist is itself a modman module so you can install it by cloning it directly or you can integrate it into your environment some other way., (*4)

$ modman clone template-patch https://gist.github.com/35c0d32dd651c4c8c840.git

NOTE: I provide no warranties for using this patch. Use at your own risk!, (*5)

Option 2:

Enable "Allow Symlinks" (found under System > Configuration > Advanced > Developer)., (*6)

Allow Symlinks, (*7)

NOTE: Disabling this security protection does decrease security as it allows template files to be loaded from any location. However, the risk is not so much symlinks as it is specially crafted template paths. The patched Template.php file (Option 1) allows the use of symlinks but should still prevent templates from being loaded from directories other than the app/design directory., (*8)

Windows Users

Windows (including cygwin) is not supported by this script, but there is a PHP-port of modman which works on Windows. I am not affiliated with the authors and do not provide support for the PHP port, only a link here for reference., (*9)

Installation

To install Modman, you can either install the library in your user's root folder, or you can install Modman globally. Regardless of which option you choose, first run one of these two scripts to download the Modman repo., (*10)

bash < <(wget -q --no-check-certificate -O - https://raw.github.com/colinmollenhour/modman/master/modman-installer)

or

bash < <(curl -s -L https://raw.github.com/colinmollenhour/modman/master/modman-installer)

1. Root Folder

If you'd like to keep the script in its native location at ~/bin/, just reload your Bash profile., (*11)

source ~/.profile

2. Installing Modman Globally

To make the script global after downloading, move the Modman script to an appropriate script folder, (e.g. /usr/local/bin/ or something similar within /usr/*). Moving it to one of the paths already loaded in your $PATH variable will automatically pick it up without a ~/.profile reload., (*12)

mv ~/bin/modman /usr/local/{{ preferred folder }}

And then finally, alias Modman with a symlink if you want something shorter to type (optional), (*13)

ln -s /usr/local/{{ preferred folder }}/modman /usr/local/{{ preferred folder }}/{{ symlink }}

Note: modman is simply a bash script, so to use it you just need to place it in your $PATH and change its mode to executable., (*14)

Getting Started

Run modman --help to get the basic usage summary or modman --tutorial to see a brief tutorial. For more in-depth information please see the Modman Wiki, (*15)

Version Control Systems

Modman currently supports subversion and git. Other VCSs could be used by manually checking out the source code into the proper directory and using the "deploy" command., (*16)

Author

License

Copyright 2009 Colin Mollenhour, (*17)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at, (*18)

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License., (*19)

The Versions

31/10 2017

dev-master

9999999-dev https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

09/05 2015

1.12

1.12.0.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

13/03 2015

1.11

1.11.0.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

29/12 2014

1.10

1.10.0.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

06/08 2014

1.9.9

1.9.9.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

03/06 2014

1.9.8

1.9.8.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

04/12 2013

1.9.7

1.9.7.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

14/06 2013

1.9.4

1.9.4.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

03/06 2013

1.9.3

1.9.3.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour

03/05 2013

1.9.2

1.9.2.0 https://github.com/colinmollenhour/modman

Module Manager

  Sources   Download

Apache-2.0

by Colin Mollenhour