Sha256: 1a1267bee49c36d945deb372fb5ee25422102ad232f3fe010a5e1a5d809cef6d

Contents?: true

Size: 1.87 KB

Versions: 1

Compression:

Stored size: 1.87 KB

Contents

require "thor"
require_relative "cache/staging"
require_relative "cache/production"
require_relative "cache/development"

module Dogids
  class Cli < Thor
    desc "cache", "List available cache commands"
    def cache(env_name = nil)
      puts " "
      puts "Cache Commands:"
      puts " "
      puts "  dogids cache:dev clear           # Clear whole cache for the dogids.dev storefront"
      puts "  dogids cache:dev category        # Clear category cache for the dogids.dev storefront"
      puts "  dogids cache:dev css             # Clear CSS cache for the dogids.dev storefront"
      puts "  dogids cache:dev javascript      # Clear Javascript cache for the dogids.dev storefront"
      puts "  dogids cache:dev qa              # Clear Q&A cache for the dogids.dev storefront"
      puts " "
      puts "  dogids cache:staging clear       # Clear whole cache for the staging.dogids.com storefront"
      puts "  dogids cache:staging category    # Clear category cache for the staging.dogids.com storefront"
      puts "  dogids cache:staging css         # Clear CSS cache for the staging.dogids.com storefront"
      puts "  dogids cache:staging javascript  # Clear Javascript cache for the staging.dogids.com storefront"
      puts "  dogids cache:staging qa          # Clear Q&A cache for the staging.dogids.com storefront"
      puts " "
      puts "  dogids cache:production clear      # Clear whole cache for the dogids.com storefront"
      puts "  dogids cache:production category   # Clear category cache for the dogids.dev storefront"
      puts "  dogids cache:production css        # Clear CSS cache for the production.dogids.com storefront"
      puts "  dogids cache:production javascript # Clear Javascript cache for the production.dogids.com storefront"
      puts "  dogids cache:production qa         # Clear Q&A cache for the dogids.com storefront"
      puts " "
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dogids-cli-0.0.19 lib/dogids/cache.rb