Sha256: 617b1a47611ed1b5f7a47f14d6b5756a7d468fe29717d887a1162d6c181c341a

Contents?: true

Size: 672 Bytes

Versions: 2

Compression:

Stored size: 672 Bytes

Contents

module Pod
  class Command
    class RepoTal < Command
      class Update < RepoTal
        self.summary = 'Update a spec repo'

        self.description = <<-DESC
          Updates the local clone of the spec-repo `NAME`. If `NAME` is omitted
          this will update all spec-repos in `#{Config.instance.repos_dir}`.
        DESC

        self.arguments = [
          CLAide::Argument.new('NAME', false),
        ]

        def initialize(argv)
          @name = argv.shift_argument
          super
        end

        def run
          show_output = !config.silent?
          config.sources_manager.update(@name, show_output)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-repo-tal-0.0.2 lib/cocoapods-repo-tal/command/repo/update.rb
cocoapods-repo-tal-0.0.1 lib/cocoapods-repo-tal/command/repo/update.rb