Sha256: a7d610dfa9c0560e3bd2b2a5a70456d8da0f7199c732f64e592a894ef6d8a048
Contents?: true
Size: 973 Bytes
Versions: 3
Compression:
Stored size: 973 Bytes
Contents
require 'erb' require 'awskit/gen/template_writer' require 'awskit/gen/toolkit/service' require 'awskit/gen/cookbook/service' module Awskit::Gen class Cli < Stackit::BaseCli def initialize(*args) super(*args) end def self.initialize_cli Thor.desc "gen", "AWS DevOps toolkit cookbook scaffolding" Thor.subcommand "gen", self end desc 'toolkit', 'Generate a new toolkit' method_option :name, aliases: '-n', desc: 'The toolkit name', :required => true method_option :path, aliases: '-p', desc: 'A file system path to output the generated toolkit' def toolkit Toolkit::Service.new(options).gen end desc 'cookbook', 'Chef cookbook scaffolding' method_option :name, aliases: '-n', desc: 'The cookbook name', :required => true method_option :path, aliases: '-p', desc: 'A file system path to output the generated cookbook' def cookbook Cookbook::Service.new(options).gen end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
awskit-0.1.2 | lib/awskit/gen/cli.rb |
awskit-0.1.1 | lib/awskit/gen/cli.rb |
awskit-0.1.0 | lib/awskit/gen/cli.rb |