Sha256: 5d52c8262fa2f49b4240b510f3d8a3453c5a3e013cb3ab10e15d3bc1dcaa114a

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 KB

Contents

require 'cocoapods-tj/command/bin/update'
module Pod
  class Command
    class Bin < Command
      class Install < Bin
        include Pod

        self.summary = ''

        self.description = <<-DESC

        DESC
        def self.options
          [
            ['--repo-update', 'Force running `pod repo update` before install'],
            ['--deployment', 'Disallow any changes to the Podfile or the Podfile.lock during installation'],
            ['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' \
          'applies to projects that have enabled incremental installation']
          ].concat(super).reject { |(name, _)| name == '--no-repo-update' }
        end

        def initialize(argv)
          @update = argv.flag?('update')
          super
          @additional_args = argv.remainder!
        end

        def run
          Update.load_local_podfile
          argvs = [
            *@additional_args
          ]
          gen = Pod::Command::Install.new(CLAide::ARGV.new(argvs))
          gen.validate!
          gen.run
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cocoapods-tj-1.0.7 lib/cocoapods-tj/command/bin/install.rb
cocoapods-tj-1.0.6 lib/cocoapods-tj/command/bin/install.rb
cocoapods-tj-1.0.5 lib/cocoapods-tj/command/bin/install.rb
cocoapods-tj-1.0.4 lib/cocoapods-tj/command/bin/install.rb
cocoapods-tj-1.0.3 lib/cocoapods-tj/command/bin/install.rb
cocoapods-tj-1.0.2 lib/cocoapods-tj/command/bin/install.rb
cocoapods-tj-1.0.1 lib/cocoapods-tj/command/bin/install.rb
cocoapods-tj-1.0.0 lib/cocoapods-tj/command/bin/install.rb