lib/kpm/installer.rb in kpm-0.0.14 vs lib/kpm/installer.rb in kpm-0.0.15

- old
+ new

@@ -9,10 +9,11 @@ def self.from_file(config_path, logger=nil) Installer.new(YAML::load_file(config_path), logger) end def initialize(raw_config, logger=nil) + raise(ArgumentError, 'killbill or kaui section must be specified') if raw_config['killbill'].nil? and raw_config['kaui'].nil? @config = raw_config['killbill'] @kaui_config = raw_config['kaui'] if logger.nil? @@ -27,13 +28,14 @@ end def install(force_download=false, verify_sha1=true) @force_download = force_download @verify_sha1 = verify_sha1 - @bundles_dir = @config['plugins_dir'] - @sha1_file = "#{@bundles_dir}/#{SHA1_FILENAME}" unless @config.nil? + @bundles_dir = @config['plugins_dir'] + @sha1_file = "#{@bundles_dir}/#{SHA1_FILENAME}" + install_killbill_server install_plugins install_default_bundles end unless @kaui_config.nil?