Sha256: 8a1bd84a4751e89145ce67fe28f0207ccd66d036c8c6388a249637623e164388
Contents?: true
Size: 1.37 KB
Versions: 17
Compression:
Stored size: 1.37 KB
Contents
#!/usr/bin/env ruby $:.push 'lib' require 'rubygems' require 'thor' require 'thor/runner' require 'thor/group' require 'opskeleton' if(File.exists?('opks.yml')) error 'opsk.yml found please rename to opsk.yaml' exit 1 end module Opsk class Root < Thor register Opsk::GeneratePuppet, 'generate_puppet', "generate_puppet [name] [box]", 'generates a Puppet based project ' register Opsk::GenerateChef, 'generate_chef', "generate_chef [name] [box]", 'generates a Chef based project ' register Opsk::Module, 'module', 'module [name]', 'generate an rspec ready Puppet module' register Opsk::Package, 'package', 'package', 'packages current module for celestial' register Opsk::Dockerize, 'dockerize', 'dockerize [from] [os_type]', 'Creates a docker image from the current sandbox' register Opsk::Clean, 'clean', 'clean', 'cleans up packaging products' register Opsk::Bump, 'bump', 'bump', 'bumps up version (clearing old version also)' register Opsk::Deploy, 'deploy', 'deploy [bintray repo]', 'deploy packge into bintray.com' 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_puppet'].options = Opsk::GeneratePuppet.class_options Opsk::Root.tasks['generate_chef'].options = Opsk::GenerateChef.class_options Opsk::Root.start ARGV
Version data entries
17 entries across 17 versions & 1 rubygems