Sha256: 9d1d92cb171d4730f23f80b2329c446feb6870c4ccf3d4d34b2fe9f44fd5c580

Contents?: true

Size: 957 Bytes

Versions: 17

Compression:

Stored size: 957 Bytes

Contents

# frozen_string_literal: true

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

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
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
neetob-0.5.12 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.11 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.10 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.9 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.8 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.7 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.6 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.5 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.4 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.3 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.2 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.1 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.5.0 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.4.37 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.4.36 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.4.35 lib/neetob/cli/neeto_deploy/commands.rb
neetob-0.4.34 lib/neetob/cli/neeto_deploy/commands.rb