Sha256: 9e3a21ee292f58d7a4cb8c0523e03c65a6b51260371dc357ce4388d059280821

Contents?: true

Size: 646 Bytes

Versions: 22

Compression:

Stored size: 646 Bytes

Contents

require "thor"
require_relative "deploy/staging"
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 staging # Deploy the staging.dogids.com storefront"
      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

22 entries across 22 versions & 1 rubygems

Version Path
dogids-cli-0.0.27 lib/dogids/deploy.rb
dogids-cli-0.0.26 lib/dogids/deploy.rb
dogids-cli-0.0.25 lib/dogids/deploy.rb
dogids-cli-0.0.24 lib/dogids/deploy.rb
dogids-cli-0.0.23 lib/dogids/deploy.rb
dogids-cli-0.0.22 lib/dogids/deploy.rb
dogids-cli-0.0.21 lib/dogids/deploy.rb
dogids-cli-0.0.20 lib/dogids/deploy.rb
dogids-cli-0.0.19 lib/dogids/deploy.rb
dogids-cli-0.0.18 lib/dogids/deploy.rb
dogids-cli-0.0.17 lib/dogids/deploy.rb
dogids-cli-0.0.16 lib/dogids/deploy.rb
dogids-cli-0.0.15 lib/dogids/deploy.rb
dogids-cli-0.0.14 lib/dogids/deploy.rb
dogids-cli-0.0.13 lib/dogids/deploy.rb
dogids-cli-0.0.12 lib/dogids/deploy.rb
dogids-cli-0.0.11 lib/dogids/deploy.rb
dogids-cli-0.0.10 lib/dogids/deploy.rb
dogids-cli-0.0.9 lib/dogids/deploy.rb
dogids-cli-0.0.8 lib/dogids/deploy.rb