Sha256: bc5dccb3a0d549ecc9c80f29bd7285e32d840e07859cdf2e5364145a30b620b7

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

#!/usr/bin/env ruby

require 'trollop'
require 'retrospec'

opts = Trollop::options do
  version "0.7.3 (c) Corey Osman"
  banner <<-EOS
Generates puppet rspec test code based on the classes and defines inside the manifests directory.


  EOS
  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 :enable_future_parser, "Enables the future parser only during validation", :require => false, :type => :boolean
end
include Puppet_Retrospec

retro = Retrospec.new(opts[:module_path], opts)
retro.create_files

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-retrospec-0.7.3 bin/retrospec