lib/cocoapods-ykutility/command/create.rb in cocoapods-ykutility-0.0.13 vs lib/cocoapods-ykutility/command/create.rb in cocoapods-ykutility-0.0.14

- old
+ new

@@ -25,18 +25,20 @@ ['--no-demo', 'Without a demo application for your library'], ['--author=AUTHOR', 'Author'], ['--email=EMAIL', 'Email'], ['--prefix=PREFIX', 'Prefix header'], ['--pod-path=PATH', 'Pod created at path'], + ['--business', 'With service/router register template'], ].concat(super) end def initialize(argv) @config = YKPod::YKCreatePodConfig.new() @config.name = argv.shift_argument @config.language = (["objc", "oc"].include? argv.option('language', "swift").downcase) ? "objc" : "swift" @config.with_demo = !argv.flag?('no-demo', false) + @config.with_register = argv.flag?('business', false) @config.author = argv.option('author', open("|git config --global user.name").gets).strip.gsub('.', '') @config.author_email = argv.option('email', open("|git config --global user.email").gets).strip @config.prefix = argv.option('prefix', "YK") @config.path = File.expand_path(argv.option('pod-path', Dir.getwd.to_s)) super \ No newline at end of file