Sha256: 6ccaf68b4be3df33cc77993e5efde6cf2a72f7e299c0ae2b2dc6fb09cae884ab

Contents?: true

Size: 1.08 KB

Versions: 83

Compression:

Stored size: 1.08 KB

Contents

require 'lhj/helper/oss_helper'
require 'terminal-table'

module Lhj
  class Command
    class OSS < Command
      class Info < OSS

        self.description = <<-DESC
          查看当前OSS Bucket的信息
        DESC

        def handle
          puts '-------base-----------'
          base_info
          puts '-------alc-----------'
          puts Lhj::OSS::Helper.instance.alc
          puts '-------logging-----------'
          puts Lhj::OSS::Helper.instance.logging
          puts '-------lifecycle----------'
          puts Lhj::OSS::Helper.instance.lifecycle
          puts '-------cors-----------'
          puts Lhj::OSS::Helper.instance.cors
          puts '--------website----------'
          puts Lhj::OSS::Helper.instance.website
          puts '--------referer----------'
          puts Lhj::OSS::Helper.instance.referer
        end

        def base_info
          puts Lhj::OSSConfig.oss_access_key_id
          puts Lhj::OSSConfig.oss_access_key_secret
          puts Lhj::OSSConfig.oss_endpoint
          puts Lhj::OSSConfig.oss_bucket
        end
      end
    end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
lhj-tools-0.2.45 lib/lhj/command/oss/info.rb
lhj-tools-0.2.44 lib/lhj/command/oss/info.rb
lhj-tools-0.2.43 lib/lhj/command/oss/info.rb
lhj-tools-0.2.42 lib/lhj/command/oss/info.rb
lhj-tools-0.2.41 lib/lhj/command/oss/info.rb
lhj-tools-0.2.40 lib/lhj/command/oss/info.rb
lhj-tools-0.2.39 lib/lhj/command/oss/info.rb
lhj-tools-0.2.38 lib/lhj/command/oss/info.rb
lhj-tools-0.2.37 lib/lhj/command/oss/info.rb
lhj-tools-0.2.36 lib/lhj/command/oss/info.rb
lhj-tools-0.2.35 lib/lhj/command/oss/info.rb
lhj-tools-0.2.34 lib/lhj/command/oss/info.rb
lhj-tools-0.2.33 lib/lhj/command/oss/info.rb
lhj-tools-0.2.32 lib/lhj/command/oss/info.rb
lhj-tools-0.2.31 lib/lhj/command/oss/info.rb
lhj-tools-0.2.30 lib/lhj/command/oss/info.rb
lhj-tools-0.2.29 lib/lhj/command/oss/info.rb
lhj-tools-0.2.28 lib/lhj/command/oss/info.rb
lhj-tools-0.2.27 lib/lhj/command/oss/info.rb
lhj-tools-0.2.26 lib/lhj/command/oss/info.rb