Documentation
¶
Index ¶
- type Directory
- func (dir Directory) Exists() bool
- func (dir Directory) IsFresh() bool
- func (dir Directory) IsProject() bool
- func (dir Directory) IsTemplate() bool
- func (dir Directory) ProjectPath() string
- func (dir Directory) ReadFile(file string) ([]byte, error)
- func (dir Directory) ReadTemplateManifest() ([]byte, error)
- func (dir Directory) TemplatePath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct {
Path string
}
Directory is an instance of the directory manipulation utility.
func MakeDirectory ¶
MakeDirectory creates an instance of the Direcotry
func (Directory) IsProject ¶
IsProject returns true/false depending on whether the directory is a project directory.
func (Directory) IsTemplate ¶
IsTemplate returns true/false depending on whether the directory is a template directory.
func (Directory) ProjectPath ¶
ProjectPath returns the expected path of the project.yml file or an empty string if the project.yml file was not found.
func (Directory) ReadFile ¶
ReadFile reads the file at the path specified, returning the bytes or an error.
func (Directory) ReadTemplateManifest ¶
ReadTemplateManifest r
func (Directory) TemplatePath ¶
TemplatePath returns the expected path of the project.yml file or an empty string if the template.yml file was not found.