Sha256: d526a36f38485babf71a3b65a99a836abc9abd5d4ff53ab0b1d56d93bd775699

Contents?: true

Size: 752 Bytes

Versions: 7

Compression:

Stored size: 752 Bytes

Contents

# frozen_string_literal: true
require 'cocoapods-lhj-bin/helpers/oss_helper'

module Pod
  class Command
    class Bin < Command
      class OSS < Bin
        class Del < OSS
          self.summary = '删除OSS的key'

          self.arguments = [
            CLAide::Argument.new('--key=XX', true)
          ]

          def self.options
            [
              ['--key', 'OSS对应的key']
            ]
          end

          def initialize(argv)
            @key = argv.option('key')
            super
          end

          def validate!
            help! "请输入key" unless @key
            super
          end

          def run
            CBin::OSS::Helper.instance.delete(@key)
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cocoapods-aomi-bin-0.1.4 lib/cocoapods-lhj-bin/command/bin/oss/del.rb
cocoapods-aomi-bin-0.1.3 lib/cocoapods-lhj-bin/command/bin/oss/del.rb
cocoapods-aomi-bin-0.1.2 lib/cocoapods-lhj-bin/command/bin/oss/del.rb
cocoapods-aomi-bin-0.1.1 lib/cocoapods-lhj-bin/command/bin/oss/del.rb
cocoapods-aomi-bin-0.1.0 lib/cocoapods-lhj-bin/command/bin/oss/del.rb
cocoapods-aomi-bin-0.0.8 lib/cocoapods-lhj-bin/command/bin/oss/del.rb
cocoapods-aomi-bin-0.0.7 lib/cocoapods-lhj-bin/command/bin/oss/del.rb