Sha256: 0235caf56a0158f00574b3f7e16481b78762860bd2207035c866240fe6dbf91d

Contents?: true

Size: 642 Bytes

Versions: 2

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true

module Rodbot
  class CLI
    module Commands
      class Deploy < Rodbot::CLI::Command
        desc 'Print the deploy configuration'
        argument :hosting, values: Rodbot::HOSTINGS, required: true, desc: 'Which hosting to use'
        option :split, type: :boolean, default: false, desc: "Whether to split into individual services"

        def rescued_call(hosting:, split:, **)
          dir = [hosting, ('split' if split)].compact.join('-')
          Rodbot::Generator
            .new(Rodbot.env.gem.join('lib', 'templates', 'deploy', dir))
            .display
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rodbot-0.5.1 lib/rodbot/cli/commands/deploy.rb
rodbot-0.5.0 lib/rodbot/cli/commands/deploy.rb