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.25 lib/lhj/command/oss/info.rb
lhj-tools-0.2.24 lib/lhj/command/oss/info.rb
lhj-tools-0.2.23 lib/lhj/command/oss/info.rb
lhj-tools-0.2.21 lib/lhj/command/oss/info.rb
lhj-tools-0.2.20 lib/lhj/command/oss/info.rb
lhj-tools-0.2.19 lib/lhj/command/oss/info.rb
lhj-tools-0.2.18 lib/lhj/command/oss/info.rb
lhj-tools-0.2.17 lib/lhj/command/oss/info.rb
lhj-tools-0.2.16 lib/lhj/command/oss/info.rb
lhj-tools-0.2.15 lib/lhj/command/oss/info.rb
lhj-tools-0.2.14 lib/lhj/command/oss/info.rb
lhj-tools-0.2.13 lib/lhj/command/oss/info.rb
lhj-tools-0.2.12 lib/lhj/command/oss/info.rb
lhj-tools-0.2.11 lib/lhj/command/oss/info.rb
lhj-tools-0.2.10 lib/lhj/command/oss/info.rb
lhj-tools-0.2.9 lib/lhj/command/oss/info.rb
lhj-tools-0.2.8 lib/lhj/command/oss/info.rb
lhj-tools-0.2.7 lib/lhj/command/oss/info.rb
lhj-tools-0.2.6 lib/lhj/command/oss/info.rb
lhj-tools-0.2.5 lib/lhj/command/oss/info.rb