Sha256: cbab02632387490b8e8d305a38c82b922341692362f958b2435f738a080fb1ca

Contents?: true

Size: 940 Bytes

Versions: 2

Compression:

Stored size: 940 Bytes

Contents

#!/usr/bin/env ruby
require 'trollop'
require 'retrospec'
require 'retrospec/version'

opts = Trollop::options do
  opt :module_path, "The path (relative or absolute) to the module directory (Defaults to current directory) " ,
      :type => :string, :required => false, :default => nil
  opt :template_dir, "Path to templates directory (only for overriding Retrospec templates)", :type => :string,
      :required => false, :default => nil
  opt :enable_user_templates, "Use Retrospec templates from #{File.expand_path('~/.puppet_retrospec_templates')}",
      :require => false, :type => :boolean
  opt :enable_beaker_tests, "Enable the creation of beaker tests", :require => false, :type => :boolean
  opt :version, "The Version of the Gem", :required => false, :type => :boolean
end
if opts[:version]
  puts "Puppet Retrospec Version: #{Puppet_Retrospec::VERSION}"
end
retro = Retrospec.new(opts[:module_path], opts)
retro.create_files

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-retrospec-0.5.1 bin/retrospec
puppet-retrospec-0.5.0 bin/retrospec