Sha256: dfd591dc26442aecad6b8d49740507a0264a05172d35ebffbdeabd15870010cc

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

module Pod
    class Command
      class Install < Command
        @@use_source = false

        class << self
          alias :original_options :options
        end
        def self.options
          [['--hsource', 'from cocoapods-binaryhqp, all frameworks use source code']].concat(original_options)
        end
  
        alias :original_initialize :initialize
        def initialize(argv)
          @@use_source = argv.flag?('hsource', false)
          original_initialize(argv)
        end

        def self.all_use_source
            @@use_source
        end

        def self.set_all_use_source(use)
          @@use_source = use
        end

        
      end
    end
end

module Pod
  class Command
    class Update < Command
      class << self
        alias :original_options :options
      end
      def self.options
        [['--hsource', 'from cocoapods-binaryhqp, all frameworks use source code']].concat(original_options)
      end

      alias :original_initialize :initialize
      def initialize(argv)
        use = argv.flag?('hsource', false)
        Pod::Command::Install.set_all_use_source(use)
        original_initialize(argv)
      end
    end
  end
end
  

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
cocoapods-binary-bugfix-0.0.3 lib/cocoapods-binary-bugfix/command_option/command_option.rb
cocoapods-binary-bugfix-0.0.2 lib/cocoapods-binary-bugfix/command_option/command_option.rb
cocoapods-binary-bugfix-0.0.1 lib/cocoapods-binary-bugfix/command_option/command_option.rb
cocoapods-binary-bel-0.5.4 lib/cocoapods-binary-bel/command_option/command_option.rb
cocoapods-binaryhqp-0.5.4 lib/cocoapods-binaryhqp/command_option/command_option.rb
cocoapods-binaryhqp-0.5.3 lib/cocoapods-binaryhqp/command_option/command_option.rb