Sha256: c4a4891f0d9b1f05eab87318bef590e9bc8d9591a34ec51add71075d295cd0f2

Contents?: true

Size: 1.05 KB

Versions: 17

Compression:

Stored size: 1.05 KB

Contents

module Kite
  class Core < Base

    include Kite::Helpers

    desc "new CLOUD_PATH", "Generate Cloud infrastructure skeleton from configuration"
    # Creates a cloud infrastructure skeleton with a given name
    def new(cloud_name)
      target = Kite::Cloud.new(self, cloud_name)
      target.prepare
    end

    desc "generate", "Generate IaC from configuration"
    subcommand "generate", Kite::Generate

    desc "module", "Use kite modules with environments"
    subcommand "module", Kite::Module

    desc "configuration", "Get configs of current environment"
    subcommand "configuration", Kite::Configuration

    desc "terraform", "Run Terraform-related commands with environment variables loaded from module vars"
    method_option :env, type: :string, desc: "Environment", required: true, default: ENV['KITE_ENV']
    def terraform(command, *args)
      Kernel.exit Kite::Terraform.new(self, options).run(command, *args)
    end

    desc "version", "Return kite version"
    # Return kite version
    def version
      say "v#{ Kite::VERSION }"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
kite-1.2.3 lib/kite/core.rb
kite-1.2.2 lib/kite/core.rb
kite-1.2.1 lib/kite/core.rb
kite-1.2.0 lib/kite/core.rb
kite-1.1.17 lib/kite/core.rb
kite-1.1.16 lib/kite/core.rb
kite-1.1.15 lib/kite/core.rb
kite-1.1.14 lib/kite/core.rb
kite-1.1.13 lib/kite/core.rb
kite-1.1.12 lib/kite/core.rb
kite-1.1.11 lib/kite/core.rb
kite-1.1.10 lib/kite/core.rb
kite-1.1.9 lib/kite/core.rb
kite-1.1.8 lib/kite/core.rb
kite-1.1.7 lib/kite/core.rb
kite-1.1.3 lib/kite/core.rb
kite-1.1.1 lib/kite/core.rb