Sha256: 823af9c80eb5aa4c141ee67084082a1f907fcb434bffd6a304582a76dafc1230

Contents?: true

Size: 1.22 KB

Versions: 18

Compression:

Stored size: 1.22 KB

Contents

# frozen_string_literal: true

require "thor"

require_relative "check_essential_env"
require_relative "checklist"
require_relative "report"

module Neetob
  class CLI
    module Sre
      class Commands < Thor
        desc "check_essential_env", "Validate essential envs for all Neeto apps or for a single app you specify"
        option :app, type: :string, aliases: :a, desc: "App name for validating essential envs for a single app, ex: neeto-deploy-web-production"
        def check_essential_env
          CheckEssentialEnv.new(options[:app]).run
        end

        desc "checklist", "Validate the Neeto SRE checklist for a single app"
        option :app, type: :string, aliases: :a, desc: "App name, ex: NeetoChat", required: true
        option :environment, type: :string, aliases: :e, desc: "Environment (staging/production)", required: true
        def checklist
          Checklist.new(options[:app], options[:environment]).run
        end

        desc "report", "Validate the Neeto SRE checklist for all apps"
        option :environment, type: :string, aliases: :e, desc: "Environment (staging/production)", required: true
        def report
          Report.new(options[:environment]).run
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
neetob-0.5.16 lib/neetob/cli/sre/commands.rb
neetob-0.5.15 lib/neetob/cli/sre/commands.rb
neetob-0.5.14 lib/neetob/cli/sre/commands.rb
neetob-0.5.13 lib/neetob/cli/sre/commands.rb
neetob-0.5.12 lib/neetob/cli/sre/commands.rb
neetob-0.5.11 lib/neetob/cli/sre/commands.rb
neetob-0.5.10 lib/neetob/cli/sre/commands.rb
neetob-0.5.9 lib/neetob/cli/sre/commands.rb
neetob-0.5.8 lib/neetob/cli/sre/commands.rb
neetob-0.5.7 lib/neetob/cli/sre/commands.rb
neetob-0.5.6 lib/neetob/cli/sre/commands.rb
neetob-0.5.5 lib/neetob/cli/sre/commands.rb
neetob-0.5.4 lib/neetob/cli/sre/commands.rb
neetob-0.5.3 lib/neetob/cli/sre/commands.rb
neetob-0.5.2 lib/neetob/cli/sre/commands.rb
neetob-0.5.1 lib/neetob/cli/sre/commands.rb
neetob-0.5.0 lib/neetob/cli/sre/commands.rb
neetob-0.4.37 lib/neetob/cli/sre/commands.rb