Sha256: 5a81feac537bd93935c718c76ff3e6a668c7ee3585b65f06a102c8be331d4441

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 Bytes

Contents

#!/usr/bin/env ruby

$:.push 'lib'
require 'rubygems'
require 'thor'
require 'thor/runner'
require 'thor/group'
require 'opskeleton'

module Opsk
  class Root < Thor

    register Opsk::Generate, 'generate', "generate [name] [box]", 'generates opskelaton project structure'
    register Opsk::Module, 'module', 'module [name]', 'generate an rspec ready Puppet module'
    register Opsk::Package, 'package', 'package', 'packages current module for celestial'
    register Opsk::Clean, 'clean', 'clean', 'cleans up packaging products'

    desc 'version', 'print opsk version'  
    def version
	puts Opskeleton::VERSION    
    end
  end 
end

# not sure that this is the cleanest way
Opsk::Root.tasks['generate'].options = Opsk::Generate.class_options 

Opsk::Root.start ARGV

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opskeleton-0.3.3 bin/opsk