cloudwatch-metrics 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudwatch_metrics/version.rb +1 -1
- data/lib/cloudwatch_metrics.rb +12 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c2de94d8e42d6fc4c02b3e7d1896f36c32bf4881c1c853907d96ae15a607bc6
|
4
|
+
data.tar.gz: 8fd20a4958a52981928042e02d7aa28ceab6d65436111bdfc3ad47c8bd2bca04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09f0d7e276d068beabac2dbe0f019ebff34f1e8ebc86745396dd3e62b08f4647d72497d5e11a44d7f32f21332f47bf63d95f8206ee94042bdb96f9e1a392e134'
|
7
|
+
data.tar.gz: 3db4f71f152bbc8a5c2a100472aa2501366976b574d3b27cbdcf7a2c20619bc97633aa3bbbfdb46c462acd0a5a5c7d9657ac79570e2f8c5302cbee555794846e
|
data/lib/cloudwatch_metrics.rb
CHANGED
@@ -5,7 +5,17 @@ require_relative "cloudwatch_metrics/version"
|
|
5
5
|
module CloudwatchMetrics
|
6
6
|
class Error < StandardError; end
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
class << self
|
9
|
+
def configuration
|
10
|
+
@configuration ||= Configuration.new
|
11
|
+
end
|
12
|
+
|
13
|
+
def configure
|
14
|
+
yield(configuration)
|
15
|
+
end
|
16
|
+
|
17
|
+
def hi
|
18
|
+
puts "Hello, #{configuration.namespace}"
|
19
|
+
end
|
10
20
|
end
|
11
21
|
end
|