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.65 lib/lhj/command/oss/info.rb
lhj-tools-0.2.64 lib/lhj/command/oss/info.rb
lhj-tools-0.2.63 lib/lhj/command/oss/info.rb
lhj-tools-0.2.62 lib/lhj/command/oss/info.rb
lhj-tools-0.2.61 lib/lhj/command/oss/info.rb
lhj-tools-0.2.60 lib/lhj/command/oss/info.rb
lhj-tools-0.2.59 lib/lhj/command/oss/info.rb
lhj-tools-0.2.58 lib/lhj/command/oss/info.rb
lhj-tools-0.2.57 lib/lhj/command/oss/info.rb
lhj-tools-0.2.56 lib/lhj/command/oss/info.rb
lhj-tools-0.2.55 lib/lhj/command/oss/info.rb
lhj-tools-0.2.54 lib/lhj/command/oss/info.rb
lhj-tools-0.2.53 lib/lhj/command/oss/info.rb
lhj-tools-0.2.52 lib/lhj/command/oss/info.rb
lhj-tools-0.2.51 lib/lhj/command/oss/info.rb
lhj-tools-0.2.50 lib/lhj/command/oss/info.rb
lhj-tools-0.2.49 lib/lhj/command/oss/info.rb
lhj-tools-0.2.48 lib/lhj/command/oss/info.rb
lhj-tools-0.2.47 lib/lhj/command/oss/info.rb
lhj-tools-0.2.46 lib/lhj/command/oss/info.rb