Sha256: 46e1d251b99f4343bd19e51aec1868a9a715b6035beac1d9d2f1584c9b82eff3
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true module YKPod class YKCreatePodConfig attr_accessor :name, :language, :with_demo, :author, :author_email, :prefix, :path def initialize() @name = "" @language = "" @with_demo = true @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-ykutility-0.0.13 | lib/cocoapods-ykutility/command/create/yk_create_pod_config.rb |
cocoapods-ykutility-0.0.12 | lib/cocoapods-ykutility/function/yk_create_pod_config.rb |