class Takeltau::InitPacker

takeltau init packer

Public Class Methods

new(args = [], local_options = {}, configuration = {}) click to toggle source

Initialize bit require Define templates rubocop:disable Metrics/MethodLength

Calls superclass method
# File lib/takeltau/init/packer/cli.rb, line 28
def initialize(args = [], local_options = {}, configuration = {})
  # initialize thor parent class
  super args, local_options, configuration

  @bit_require_file = config.active['bit_require_file']

  @ansiblelint = {
    name: 'ansible/.ansible-lint',
    template: 'templates/ansiblelint.tt'
  }
  @bitrequireyml = {
    name: 'bitrequire.yml',
    template: 'templates/bitrequireyml.tt'
  }
  @gitignore = {
    name: '.gitignore',
    template: '../templates/gitignore.tt'
  }
  @groupvarsprojectyml = {
    name: 'ansible/group_vars/all/project.yml',
    template: 'templates/groupvarsprojectyml.tt'
  }
  @playbooksiteyml = {
    name: 'ansible/playbook-site.yml',
    template: 'templates/playbooksiteyml.tt'
  }
  @projectyml = {
    name: 'project.yml',
    template: 'templates/projectyml.tt'
  }
  @rakefile = {
    name: 'Rakefile',
    template: '../templates/Rakefile.tt'
  }
end
source_root() click to toggle source

Provide template path for Thor:Actions

# File lib/takeltau/init/packer/cli.rb, line 66
def self.source_root
  File.dirname(__FILE__)
end

Public Instance Methods

docker() click to toggle source
# File lib/takeltau/init/packer/cli.rb, line 78
def docker
  exit init_packer_docker
end