Sha256: 18ed24dd5d2d727ee55ec5db00175995c5cf60975ce449153fc66eaff081d3a0

Contents?: true

Size: 1013 Bytes

Versions: 3

Compression:

Stored size: 1013 Bytes

Contents

require 'big_keeper/command/pod/podfile'

module BigKeeper

  def self.pod_command
    desc 'Podfile operation'
    command :podfile do |podfile|
      podfile.flag %i[pod podfile]
      podfile.desc 'Podfile'

      podfile.desc 'Detect podname should be locked.'
      podfile.command :detect do |detect|
        detect.action do |global_options,options,args|
          path = File.expand_path(global_options[:path])
          podfile_detect(path)
        end
      end

      podfile.desc 'Lock podname should be locked.'
      podfile.command :lock do |lock|
        lock.action do |global_options, options, args|
          path = File.expand_path(global_options[:path])
          podfile_lock(path)
        end
      end

      podfile.desc 'Update modules should be upgrade.'
      podfile.command :update do |lock|
        lock.action do |global_options, options, args|
          path = File.expand_path(global_options[:path])
          podfile_modules_update(path)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bigkeeper-0.8.0 lib/big_keeper/command/pod.rb
bigkeeper-0.7.8 lib/big_keeper/command/pod.rb
bigkeeper-0.7.7 lib/big_keeper/command/pod.rb