Sha256: 43e6e37a685f3025ea03c483a36007a9ba3bb735d41c3066eee00fb8244cef49

Contents?: true

Size: 773 Bytes

Versions: 2

Compression:

Stored size: 773 Bytes

Contents

#!/usr/bin/env ruby
require 'trollop'
require 'puppet-retrospec'

opts = Trollop::options do
  opt :module_path, "destination directory to create spec tests in (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
end
ENV['RETROSPEC_ENABLE_LOCAL_TEMPLATES'] = 'true' if opts[:enable_user_templates]
ENV['RETROSPEC_TEMPLATES_PATH'] = opts[:template_dir] if not opts[:template_dir].nil?
Retrospec.run(opts[:module_path])

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-retrospec-0.3.0 bin/retrospec
puppet-retrospec-0.2.0 bin/retrospec