Module: Wes::Cloudkit
- Defined in:
- lib/wes/cloudkit.rb,
lib/wes/cloudkit/routing.rb,
lib/wes/cloudkit/version.rb,
lib/wes/cloudkit/aws_creds.rb,
lib/wes/cloudkit/app_config.rb,
lib/wes/cloudkit/configuration.rb
Defined Under Namespace
Classes: AppConfig, AwsCreds, Configuration, Routing
Constant Summary
collapse
- VERSION =
"4.0.1".freeze
Class Method Summary
collapse
Class Method Details
.aws_creds ⇒ Object
8
9
10
|
# File 'lib/wes/cloudkit.rb', line 8
def self.aws_creds
AwsCreds.get
end
|
.config(node = nil) ⇒ Object
.dev? ⇒ Boolean
24
25
26
|
# File 'lib/wes/cloudkit.rb', line 24
def self.dev?
Configuration.env == "development"
end
|
.env ⇒ Object
28
29
30
|
# File 'lib/wes/cloudkit.rb', line 28
def self.env
Configuration.env
end
|
.go! ⇒ Object
32
33
34
35
|
# File 'lib/wes/cloudkit.rb', line 32
def self.go!
$LOAD_PATH << File.join(Configuration.root)
require "pry" if dev?
end
|
.prod? ⇒ Boolean
37
38
39
|
# File 'lib/wes/cloudkit.rb', line 37
def self.prod?
Configuration.env == "production"
end
|
.routing(routes) ⇒ Object
41
42
43
|
# File 'lib/wes/cloudkit.rb', line 41
def self.routing(routes)
Routing.new routes
end
|
.test? ⇒ Boolean
45
46
47
|
# File 'lib/wes/cloudkit.rb', line 45
def self.test?
Configuration.env == "test"
end
|