Project

awskit

0.0
No commit activity in last 3 years
No release in over 3 years
Generates an AWS DevOps toolkit.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0
~> 3.0

Runtime

 Project Readme

awskit

DevOps toolkit and Chef cookbook generator for Amazon Web Services based on StackIT.

Usage

./bin/awskit gen toolkit --name mytoolkit
./bin/awskit gen cookbook --name mycookbook

Plugins

The generated toolkit supports a plugin style architecture that makes it easy to add new commands to the CLI.

To create a new command named "mycommand":

  1. Create directory %TOOLKIT_HOME%/lib/%TOOLKIT_NAME%/mycommand
  2. Create cli.rb with the following content
module MyToolkit::Mycommand

  class Cli < Stackit::BaseCli

    def initialize(*args)
      super(*args)
    end

    def self.initialize_cli
      Thor.desc "mycommand", "Runs mycommand"
      Thor.subcommand "mycommand", self
    end

  end
end

Now when the help command is run, "mycommand" is in the list of supported commands.