Documentation
¶
Index ¶
- Constants
- func Assets(args ...string)
- func Attach(args ...string)
- func Bash(args ...string)
- func Build(args ...string)
- func Bundle(args ...string)
- func BundleInstall(args ...string)
- func Console(args ...string)
- func DaemonizedCommands() map[string]Executor
- func InfoCommands() map[string]Executor
- func Install(args ...string)
- func InstallSystemd(args ...string)
- func InstallUpstart(args ...string)
- func InteractiveCommands() map[string]Executor
- func Irb(args ...string)
- func IsCommand(cmd string) bool
- func Kill(args ...string)
- func Logs(args ...string)
- func MkDirs()
- func ParseCommand(args []string)
- func PrintCommands()
- func PrintParams(args ...string)
- func Rails(args ...string)
- func Rake(args ...string)
- func Restart(args ...string)
- func Root() string
- func Ruby(args ...string)
- func Run(args ...string)
- func SetConfig(settings *config.Settings)
- func SetProcess(proc string)
- func Start(args ...string)
- func Status(args ...string)
- func Stop(args ...string)
- func Update(args ...string)
- func UpdateNginxConf() (err error)
- type Available
- type Executor
- type Network
- type NginxConf
- type NginxPort
- type Ports
- type Runner
- type SystemdConf
- type UpstartConf
Constants ¶
const NginxTemplate = `` /* 1015-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func BundleInstall ¶
func BundleInstall(args ...string)
func Console ¶
func Console(args ...string)
Console will run an interactive command for the given console command
func DaemonizedCommands ¶
DaemonizedCommands are commands that will be daemonized or manage daemonized commands
func InfoCommands ¶
InfoCommands are commands the will pull out information about the given process
func InstallSystemd ¶
func InstallSystemd(args ...string)
func InstallUpstart ¶
func InstallUpstart(args ...string)
func InteractiveCommands ¶
InteractiveCommands will turn over some kind of command back to the user
func IsCommand ¶
isCommand will take in a given command and check to see if it is available to be executed against ALL of the commands at one time.
func ParseCommand ¶
func ParseCommand(args []string)
handleCommand will take in the argument for the process and run it
func PrintCommands ¶
func PrintCommands()
PrintCommands will list out all of the commands to the end user.
func PrintParams ¶
func PrintParams(args ...string)
PrintParams will print all of the settings that will be passed. into docker It assumes the first instance .
func SetConfig ¶
SetConfig will set an var for the settings for the given process that will be executing.
func SetProcess ¶
func SetProcess(proc string)
SetProcess is setting the name of the process that this command will be executing against. The pid will have the process name in it.
func Stop ¶
func Stop(args ...string)
Stop will stop all the process if this type. If the 'Kill' setting is turned on then the stop will kill the process instead
func UpdateNginxConf ¶
func UpdateNginxConf() (err error)
UpdateNginxConf will replace vars in the 'config/nginx.template.conf' file. The template engine being used is the one packaged with golang. It will replace the following vars.
* {{.App}} -> shoehorn.cfg #App * {{.Pwd}} -> current working dir * {{.Domains}} -> shoehorn.cfg # Domains * {{.Allow}} -> shoehorn.cfg # Allow * {{.Ports}} -> public ports
Then it will attempt to reload nginx configuration. NOTE: this is done via a sudo command.