Sha256: afaf4bf5eaef9fe915bd96e2bff52f67fbb7cef56f6fa2bc4abdfcc20e5fa179

Contents?: true

Size: 787 Bytes

Versions: 16

Compression:

Stored size: 787 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'templater'

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', '0.1', ARGV

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
auxesis-cucumber-nagios-0.2.1 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.2.2 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.2.5 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.2.6 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.2.8 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.2 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.3.1 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.3.4 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.3.5 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.3.6 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.3.7 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.3.8 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.4.0 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.4.1 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.4.3 bin/cucumber-nagios-gen
auxesis-cucumber-nagios-0.4.4 bin/cucumber-nagios-gen