Sha256: 332e6d6890abd9ef06d54f877e760f76688e0a665eb8e84661d3b25141d433e1

Contents?: true

Size: 1.2 KB

Versions: 17

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

require "thor"
require_relative "config_vars/commands"
require_relative "./autoscaling_config"
require_relative "./scheduled_exports"
require_relative "./certificates"

module Neetob
  class CLI
    module NeetoDeploy
      class Commands < Thor
        desc "config_vars", "Interact with the config(env) variables on neetoDeploy apps"
        subcommand "config_vars", ConfigVars::Commands

        desc "autoscaling_config", "Get the autoscaling config of an app deployed on NeetoDeploy"
        option :app, type: :string, aliases: :a, desc: "App name"
        def autoscaling_config
          AutoscalingConfig.new(options[:app]).run
        end

        desc "scheduled_exports", "Get the scheduled exports setting of an app's primary database deployed on NeetoDeploy"
        option :app, type: :string, aliases: :a, desc: "App name"
        def scheduled_exports
          ScheduledExports.new(options[:app]).run
        end

        desc "certificates", "Get the certificates for an app deployed on NeetoDeploy"
        option :app, type: :string, aliases: :a, desc: "App name"
        def certificates
          Certificates.new(options[:app]).run
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
neetob-0.5.29 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.28 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.27 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.26 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.25 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.24 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.23 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.22 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.21 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.20 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.19 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.18 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.17 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.16 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.15 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.14 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.13 lib/neetob/cli/neeto_deploy/commands.rb