lib/awestruct/cli/invoker.rb in awestruct-0.5.1 vs lib/awestruct/cli/invoker.rb in awestruct-0.5.2

- old
+ new

@@ -2,11 +2,10 @@ require 'awestruct/cli/init' require 'awestruct/cli/generate' require 'awestruct/cli/auto' require 'awestruct/cli/server' -require 'awestruct/cli/deploy' require 'awestruct/logger' require 'pathname' require 'logger' @@ -103,9 +102,11 @@ def invoke_generate() @success = Awestruct::CLI::Generate.new( config, options.profile, options.base_url, 'http://localhost:4242', options.force ).run end def invoke_deploy() + require 'awestruct/cli/deploy' + deploy_config = profile[ 'deploy' ] if ( deploy_config.nil? ) $LOG.error "No configuration for 'deploy'" if $LOG.error? return