Sha256: 289b6800cae380001b0ac33ce2955d7864cfba52c5782805e9919293ed77cd57

Contents?: true

Size: 1.1 KB

Versions: 5

Compression:

Stored size: 1.1 KB

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'templater'
require 'cucumber-nagios'

module CucumberNagiosGenerators

  extend Templater::Manifold

  class ProjectGenerator < Templater::Generator
    def self.source_root
      File.join(File.dirname(__FILE__), '..', 'lib', 'generators', 'project')
    end

    def destination_root
      # takes :name from first_argument
      File.join(@destination_root, name)
    end

    desc "Generate a new self-contained cucumber-nagios project."
    first_argument :name, :required => true, :desc => "Project name"

    file '.gitignore', '.gitignore'
    file '.bzrignore', '.bzrignore'
    
    glob! 

  end

  desc "Generate a cucumber-nagios project."
  add :project, ProjectGenerator

end


CucumberNagiosGenerators.run_cli Dir.pwd, 'cucumber-nagios-gen', Cucumber::Nagios::VERSION, ARGV

puts <<-README
Your new cucumber-nagios project is set up.

To get going, you'll need to bundle gems into the project:
  
  $ gem bundle

It's highly recommended you version control your projects:
  
  - with Git: git init ; git add . 
  - with Bazaar: bzr init ; bzr add 

README

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber-nagios-0.6.8 bin/cucumber-nagios-gen
cucumber-nagios-0.6.7 bin/cucumber-nagios-gen
cucumber-nagios-0.6.6 bin/cucumber-nagios-gen
cucumber-nagios-0.6.5 bin/cucumber-nagios-gen
cucumber-nagios-0.6.4 bin/cucumber-nagios-gen