Skip to content

Commit

Permalink
fix constant defining
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalextremist committed Dec 13, 2019
1 parent 7ca21aa commit e546da1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v201912131050-4Kg1 0.0.1.23
# v201912131050-4Kg1 0.0.1.24
* Allow override of configuration file name
* Pass content-type as `request.format` and pass JSON body as `request.data`

Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: artillery
version: 0.0.1.23
version: 0.0.1.24

description: Serverfree object-oriented microservice architecture.

Expand Down
7 changes: 3 additions & 4 deletions src/artillery/initialize.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ module Artillery
#de 2. artillery.yml
#de 3. Defaults

ENVIRONMENT = ENV["ARTILLERY_ENVIRONMENT"] ||= @@environment
ENVIRONMENT = ENV["ARTILLERY_ENVIRONMENT"] ||= "development"
CALLSITE = (ENV["ARTILLERY_CALLSITE"] ||= `pwd`).chomp
unless self.has_constant? :CONFIGURATION
CONFIGURATION = (ENV["ARTILLERY_CONFIGURATION"] ||= "artillery.yml")
end

#de Defaults:
@@yaml = uninitialized YAML::Any
Expand All @@ -18,6 +15,8 @@ module Artillery
@@mountpoint_port_zeromq = uninitialized String
@@mountpoint_port_http = uninitialized String

CONFIGURATION = ENV["ARTILLERY_CONFIGURATION"] ||= "artillery.yml"

@@public_directory = "./public"
@@mountpoint_interface = "0.0.0.0"
@@mountpoint_port_zeromq = "4000"
Expand Down

0 comments on commit e546da1

Please sign in to comment.