Sha256: df13cadf5ae93e26dcaec618aadfbd3b20c1f12ac7c1f2003822a35ffec76308

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

require "thor"
require_relative "deploy/web"
require_relative "deploy/worker"

module Dogids
  class Cli < Thor
    desc "deploy", "List available deployment commands"
    def deploy(app_name = nil)
      deploy_command = "deploy_#{app_name}"
      return self.send(deploy_command) if self.respond_to?(deploy_command)

      puts "Deployment Commands:"
      puts "  dogids deploy web    # Deploy the dogids.com storefront"
      puts "  dogids deploy worker # Deploy the dogids-backgrounder app"
      puts " "
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dogids-cli-0.0.5 lib/dogids/deploy.rb
dogids-cli-0.0.4 lib/dogids/deploy.rb
dogids-cli-0.0.3 lib/dogids/deploy.rb