Sha256: 1164d76f45bb5c2734e03677c8b830ef21ed7f40b9e9c3441f44e534b2c7a1e8

Contents?: true

Size: 375 Bytes

Versions: 24

Compression:

Stored size: 375 Bytes

Contents

require 'pathname'

module PuppetMagnum
  class BaseGenerator < Thor::Group
    include Thor::Actions
    include Thor::Shell

    argument :path,
      type: :string,
      required: true

    def self.source_root
      PuppetMagnum.root.join('generator_files')
    end

    private 

    def target
      @target ||= Pathname.new(File.expand_path(path))
    end

  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
puppet-magnum-4.1.1 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-4.0.4 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-4.0.3 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-4.0.2 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-4.0.1 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-4.0.0 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.1.5 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.1.3 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.1.2 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.1.1 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.1.0 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.12 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.11 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.10 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.9 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.8 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.7 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.6 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.5 lib/puppet-magnum/generators/base_generator.rb
puppet-magnum-3.0.4 lib/puppet-magnum/generators/base_generator.rb