Sha256: 6ccaf68b4be3df33cc77993e5efde6cf2a72f7e299c0ae2b2dc6fb09cae884ab

Contents?: true

Size: 1.08 KB

Versions: 81

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

81 entries across 81 versions & 1 rubygems

Version Path
lhj-tools-0.2.83 lib/lhj/command/oss/info.rb
lhj-tools-0.2.82 lib/lhj/command/oss/info.rb
lhj-tools-0.2.81 lib/lhj/command/oss/info.rb
lhj-tools-0.2.80 lib/lhj/command/oss/info.rb
lhj-tools-0.2.79 lib/lhj/command/oss/info.rb
lhj-tools-0.2.78 lib/lhj/command/oss/info.rb
lhj-tools-0.2.77 lib/lhj/command/oss/info.rb
lhj-tools-0.2.76 lib/lhj/command/oss/info.rb
lhj-tools-0.2.75 lib/lhj/command/oss/info.rb
lhj-tools-0.2.74 lib/lhj/command/oss/info.rb
lhj-tools-0.2.73 lib/lhj/command/oss/info.rb
lhj-tools-0.2.72 lib/lhj/command/oss/info.rb
lhj-tools-0.2.71 lib/lhj/command/oss/info.rb
lhj-tools-0.2.70 lib/lhj/command/oss/info.rb
lhj-tools-0.2.69 lib/lhj/command/oss/info.rb
lhj-tools-0.2.68 lib/lhj/command/oss/info.rb
lhj-tools-0.2.67 lib/lhj/command/oss/info.rb
lhj-tools-0.2.66 lib/lhj/command/oss/info.rb
lhj-tools-0.2.65 lib/lhj/command/oss/info.rb
lhj-tools-0.2.64 lib/lhj/command/oss/info.rb