"-i"
*aws-keyfile*
(describe-property "PublicIpAddress")
- (format nil "cd ~A ; ~A run" *remote-work-dir* *remote-candle-location*))
+ (format nil "cd ~A ; ~A run --env aws" *remote-work-dir* *remote-candle-location*))
:output out-str
:error out-str
:wait t)))))
The main directory for all candle work to be done in. When the server is running
in local mode, this is also the place that builds are built in")
+(defvar *environment* :local
+ "*ENVIRONMENT*
+
+VALUE TYPE:
+
+ A keyword
+
+INITIAL VALUE:
+
+ :LOCAL
+
+DESCRIPTION:
+
+ The environment that candle is currently running. Useful to do switching in tests
+ or in the .candle file to do extra boot up processing.")
+
(define-condition candle-error (error)
((reason :initarg :reason :reader candle-error-reason))
(:documentation
(let
((options
'((:name :help :short "h" :long "help" :description "Print this usage.")
- (:name :task :long "task" :variable-name "TASK" :takes-argument t :description "Run TASK"))))
+ (:name :task :long "task" :variable-name "TASK" :takes-argument t :description "Run TASK")
+ (:name :env :long "env" :variable-name "ENV" :takes-argument t
+ :description "Runs candle with *candle-environment* set to ENV as a keyword."))))
(standard-cli "candle run" options args :default nil
+ (when (opera:option-present :env parsed-options)
+ (setf candle:*environment* (intern (string-upcase (opera:option-argument :env parsed-options)) :keyword)))
(cond
((opera:option-present :task parsed-options)
(let
#:server #:add-project #:delete-project #:refresh-project #:list-projects
#:project-branch-information #:run #:list-tasks #:*candle-dir* #:*job-system* #:*candle-dir* #:failures
#:project-job-information #:get-job-log #:retry-job #:job-project #:project-dir #:process-job-in-system
- #:shutdown-system
+ #:shutdown-system #:*environment*
#:candle-error #:candle-error-reason)
(:documentation "Main candle package.