Sha256: 406d73dffbe3c3f22bfd29e4c1c1b07daf86763d9d8b49fda50343932307aade

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

# frozen_string_literal: true

module YKPod

  class YKCreatePodConfig
    attr_accessor :name, :language, :with_demo, :with_register, :author, :author_email, :prefix, :path

    def initialize()
      @name = ""
      @language = ""
      @with_demo = true
      @with_register = false
      @author = open("|git config --global user.name").gets.strip.gsub('.', '')
      @author_email = open("|git config --global user.email").gets.strip
      @prefix = "YK"
      @path = File.expand_path(Dir.getwd.to_s)
    end

    def prefix_name
      return name.start_with?(prefix) ? name : prefix + name
    end
  end
end 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cocoapods-ykutility-0.0.16 lib/cocoapods-ykutility/command/create/yk_create_pod_config.rb
cocoapods-ykutility-0.0.15 lib/cocoapods-ykutility/command/create/yk_create_pod_config.rb
cocoapods-ykutility-0.0.14 lib/cocoapods-ykutility/command/create/yk_create_pod_config.rb