Sha256: 748b37be61f08bc8f1e6f63eca777f1dc3f54192f3907079df78b7c632878146

Contents?: true

Size: 1.65 KB

Versions: 25

Compression:

Stored size: 1.65 KB

Contents

require 'big_keeper/command/pod/podfile'
require 'big_keeper/util/leancloud_logger'

module BigKeeper

  def self.pod_command
    desc 'Podfile operation'
    command :podfile do |podfile|
      podfile.desc 'Podfile'

      podfile.desc 'Detect podname should be locked.'
      podfile.command :detect do |detect|
        detect.action do |global_options, options, args|
          LeanCloudLogger.instance.set_command("podfile/detect")

          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.desc 'Lock pods accouding to Podfile.'
        lock.command :module do |m|
          m.action do |global_options, options, args|
            LeanCloudLogger.instance.set_command("podfile/lock/module")

            path = File.expand_path(global_options[:path])
            podfile_lock(path, false)
          end
        end
        lock.desc 'Lock pods accouding to Podfile.lock.'
        lock.command :submodule do |s|
          s.action do |global_options, options, args|
            LeanCloudLogger.instance.set_command("podfile/lock/submodule")

            path = File.expand_path(global_options[:path])
            podfile_lock(path, true)
          end
        end

      end

      podfile.desc 'Update modules should be upgrade.'
      podfile.command :update do |update|
        update.action do |global_options, options, args|
          LeanCloudLogger.instance.set_command("podfile/update")

          path = File.expand_path(global_options[:path])
          podfile_modules_update(path)
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
kookeeper-3.0.0 lib/big_keeper/command/pod.rb
kookeeper-2.0.0 lib/big_keeper/command/pod.rb
kookeeper-1.0.0 lib/big_keeper/command/pod.rb
bigkeeper-0.9.21 lib/big_keeper/command/pod.rb
bigkeeper-0.9.20 lib/big_keeper/command/pod.rb
bigkeeper-0.9.19 lib/big_keeper/command/pod.rb
bigkeeper-0.9.18 lib/big_keeper/command/pod.rb
bigkeeper-0.9.17 lib/big_keeper/command/pod.rb
bigkeeper-0.9.16 lib/big_keeper/command/pod.rb
bigkeeper-0.9.15 lib/big_keeper/command/pod.rb
bigkeeper-0.9.14 lib/big_keeper/command/pod.rb
bigkeeper-0.9.13 lib/big_keeper/command/pod.rb
bigkeeper-0.9.12 lib/big_keeper/command/pod.rb
bigkeeper-0.9.11 lib/big_keeper/command/pod.rb
bigkeeper-0.9.10 lib/big_keeper/command/pod.rb
bigkeeper-0.9.9 lib/big_keeper/command/pod.rb
bigkeeper-0.9.8 lib/big_keeper/command/pod.rb
bigkeeper-0.9.7 lib/big_keeper/command/pod.rb
bigkeeper-0.9.6 lib/big_keeper/command/pod.rb
bigkeeper-0.9.5 lib/big_keeper/command/pod.rb