command

package
v0.0.0-...-eb6e48b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2014 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const NginxTemplate = `` /* 1015-byte string literal not displayed */

Variables

This section is empty.

Functions

func Assets

func Assets(args ...string)

func Attach

func Attach(args ...string)

func Bash

func Bash(args ...string)

Bash will execute a bash command against the given container

func Build

func Build(args ...string)

Build will create the container if nessary

func Bundle

func Bundle(args ...string)

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

func DaemonizedCommands() map[string]Executor

DaemonizedCommands are commands that will be daemonized or manage daemonized commands

func InfoCommands

func InfoCommands() map[string]Executor

InfoCommands are commands the will pull out information about the given process

func Install

func Install(args ...string)

func InstallSystemd

func InstallSystemd(args ...string)

func InstallUpstart

func InstallUpstart(args ...string)

func InteractiveCommands

func InteractiveCommands() map[string]Executor

InteractiveCommands will turn over some kind of command back to the user

func Irb

func Irb(args ...string)

func IsCommand

func IsCommand(cmd string) bool

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 Kill

func Kill(args ...string)

Kill will kill the given process

func Logs

func Logs(args ...string)

Logs will print out all of the logs for each of the instances

func MkDirs

func MkDirs()

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 Rails

func Rails(args ...string)

func Rake

func Rake(args ...string)

func Restart

func Restart(args ...string)

Restart will call stop then start for this process

func Root

func Root() string

func Ruby

func Ruby(args ...string)

func Run

func Run(args ...string)

func SetConfig

func SetConfig(settings *config.Settings)

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 Start

func Start(args ...string)

Start will run the standard start command

func Status

func Status(args ...string)

Status will list out the statuses for the given process

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 Update

func Update(args ...string)

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.

Types

type Available

type Available struct {
	// contains filtered or unexported fields
}

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

type Network

type Network struct {
	Ip      string
	Public  Ports
	Private Ports
}

type NginxConf

type NginxConf struct {
	App     string
	Ports   []NginxPort
	Domains string
	Allow   []string
	Pwd     string
}

type NginxPort

type NginxPort struct {
	PublicPort string
}

type Ports

type Ports struct {
	// contains filtered or unexported fields
}

type Runner

type Runner func(...string)

type SystemdConf

type SystemdConf struct {
	Exe string
	App string
	Pwd string
}

type UpstartConf

type UpstartConf struct {
	App string
	Exe string
	Pwd string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL