ansibleGen

package
v0.0.0-...-8dd5ed4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteTreeToDisk

func WriteTreeToDisk(rootDir string, treeStructure Folder, baseFs *afero.Fs, dryRun bool, baseDir string)

WriteTreeToDisk creates a directory structure based on the treeStructure parameter

Types

type AnsibleProject

type AnsibleProject struct {
	Name          string
	CustomRoles   []AnsibleRole
	GalaxyRoles   []string
	TreeStructure Folder
	RootDir       string
}

AnsibleProject represents the structure of an Ansible Project

func NewAnsibleProject

func NewAnsibleProject(name string, customRoles string, galaxyRoles string) *AnsibleProject

NewAnsibleProject initializes the structure for a new Ansible project

func (*AnsibleProject) InitGit

func (project *AnsibleProject) InitGit(dryRun bool)

InitGit initializes a Git repository

func (*AnsibleProject) Save

func (project *AnsibleProject) Save(dryRun bool)

Save run the tree structure creation for the project

type AnsibleRole

type AnsibleRole struct {
	Name          string
	TreeStructure Folder
}

AnsibleRole represents the structure of an Ansible Role

func NewAnsibleRole

func NewAnsibleRole(name string) *AnsibleRole

NewAnsibleRole initializes the structure for a new Ansible role

func (*AnsibleRole) Save

func (role *AnsibleRole) Save(dryRun bool)

Save run the tree structure creation for the project

type File

type File struct {
	Name    string `yaml:"name"`
	Content string `yaml:"content"`
}

File represents a system file

type Folder

type Folder struct {
	Name    string   `yaml:"name"`
	Files   []File   `yaml:"files"`
	Folders []Folder `yaml:"folders"`
}

Folder represents a system folder

Jump to

Keyboard shortcuts

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