Sha256: 6ba768c4d9d612e01d535779ad8095992919eaf4eccc8f6f21a1e2ab7b456465

Contents?: true

Size: 642 Bytes

Versions: 14

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

14 entries across 14 versions & 1 rubygems

Version Path
rodbot-0.4.5 lib/rodbot/cli/commands/deploy.rb
rodbot-0.4.4 lib/rodbot/cli/commands/deploy.rb
rodbot-0.4.3 lib/rodbot/cli/commands/deploy.rb
rodbot-0.4.2 lib/rodbot/cli/commands/deploy.rb
rodbot-0.4.1 lib/rodbot/cli/commands/deploy.rb
rodbot-0.4.0 lib/rodbot/cli/commands/deploy.rb
rodbot-0.3.4 lib/rodbot/cli/commands/deploy.rb
rodbot-0.3.3 lib/rodbot/cli/commands/deploy.rb
rodbot-0.3.2 lib/rodbot/cli/commands/deploy.rb
rodbot-0.3.1 lib/rodbot/cli/commands/deploy.rb
rodbot-0.3.0 lib/rodbot/cli/commands/deploy.rb
rodbot-0.2.0 lib/rodbot/cli/commands/deploy.rb
rodbot-0.1.1 lib/rodbot/cli/commands/deploy.rb
rodbot-0.1.0 lib/rodbot/cli/commands/deploy.rb