bin/nixenvironment in nixenvironment-0.0.79 vs bin/nixenvironment in nixenvironment-0.0.80

- old
+ new

@@ -11,10 +11,19 @@ require 'colorize' require 'nokogiri' include Nixenvironment +# ------------ WARNING: Удалить это если не поможет с крешем https://github.com/CocoaPods/CocoaPods/issues/2483#issuecomment-57505048 +require 'CFPropertyList' +require 'CFPropertyList/rbNokogiriParser' + +def CFPropertyList.xml_parser_interface + CFPropertyList::NokogiriXMLParser +end +# ------------------------------------------------ + CONFIG_SETTINGS_FILE_PATH = File.join(File.dirname(__FILE__), CONFIG_SETTINGS_FILE_NAME) program :name, 'nixenvironment' program :version, VERSION program :description, 'NIX projects build and deploy utility' @@ -267,13 +276,16 @@ c.syntax = 'nixenvironment master' c.description = 'Jenkins master' c.option '--init', 'Init Jenkins master' c.option '--start', 'Start Jenkins master' c.option '--deinit', 'Deinit Jenkins master' - c.option '--start_pu', 'Start Provisioning updater' + c.option '--start_pu ENV', String, 'Start Provisioning updater. To run develop server enter "develop" argument' + c.option '--start_cs', 'Start Unity cache server.' c.option '--stop', 'Stop Jenkins master' c.action do |_args, options| + options.default :start_pu => '' + begin if options.init MasterInitializer.new.start elsif options.deinit MasterDeinitializer.new.start @@ -292,11 +304,13 @@ begin starter.start rescue SystemExit, Interrupt starter.stop end - elsif options.start_pu - MasterStarter.new.start_pu + elsif options.start_pu != '' + MasterStarter.new.start_pu(options.start_pu != 'develop') + elsif options.start_cs + MasterStarter.new.start_cache_server end end end def init \ No newline at end of file